Class
Class Methods
::
lib/rss/rexmlparser.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/rss/rexmlparser.rb, line 10
def listener
REXMLListener
end
No documentation available
Instance Methods
#
lib/rss/rexmlparser.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/rss/rexmlparser.rb, line 16
def _parse
begin
REXML::Document.parse_stream(@rss, @listener)
rescue RuntimeError => e
raise NotWellFormedError.new{e.message}
rescue REXML::ParseException => e
context = e.context
line = context[0] if context
raise NotWellFormedError.new(line){e.message}
end
end
No documentation available