From c8e69c32618a23d988984c2ac11ab4c0e03b3cda Mon Sep 17 00:00:00 2001 From: NAITOH Jun Date: Sat, 22 Jun 2024 12:01:08 +0900 Subject: [PATCH] Fix private_constant being public See: https://github.com/ruby/rexml/pull/154#discussion_r1649469269 --- lib/rexml/parsers/baseparser.rb | 13 ++++++------- lib/rexml/source.rb | 1 - 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index a003ac29..c83e7958 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -134,7 +134,6 @@ module Private ENTITYDECL_PATTERN = /(?:#{GEDECL_PATTERN})|(?:#{PEDECL_PATTERN})/um end private_constant :Private - include Private def initialize( source ) self.stream = source @@ -302,7 +301,7 @@ def pull_event raise REXML::ParseException.new( "Bad ELEMENT declaration!", @source ) if md.nil? return [ :elementdecl, "