class RSS::REXMLParser

公共类方法

listener() 点击切换源代码
# File rss-0.3.1/lib/rss/rexmlparser.rb, line 10
def listener
  REXMLListener
end

私有实例方法

_parse() 点击切换源代码
# File rss-0.3.1/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