summaryrefslogtreecommitdiff
path: root/lib/rss/xmlparser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 13:35:11 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-23 13:35:11 +0000
commit93402a2f179abbb89bca9337b85a420596cc7753 (patch)
tree71e0eec4b90f0f355f3dc4f83f774736c8b3191a /lib/rss/xmlparser.rb
parent4b87fa9de2b62d553f56671fef792a357d0996f7 (diff)
* lib/rss/parser.rb: added entity handling type predicate.
* lib/rss/rexmlparser.rb: ditto. * lib/rss/xmlparser.rb: ditto. * lib/rss/xmlscanner.rb: ditto. * lib/rss/xmlscanner.rb: more robust entity handling. * test/rss/test_parser.rb: added an entity handling test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/xmlparser.rb')
-rw-r--r--lib/rss/xmlparser.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/rss/xmlparser.rb b/lib/rss/xmlparser.rb
index 64737b821b..3dfe7d461a 100644
--- a/lib/rss/xmlparser.rb
+++ b/lib/rss/xmlparser.rb
@@ -59,11 +59,13 @@ module RSS
class XMLParserParser < BaseParser
- private
- def listener
- XMLParserListener
+ class << self
+ def listener
+ XMLParserListener
+ end
end
-
+
+ private
def _parse
begin
parser = REXMLLikeXMLParser.new