class RSS::XMLScanParser
公共类方法
listener() 点击切换源代码
# File rss-0.3.1/lib/rss/xmlscanner.rb, line 10 def listener XMLScanListener end
私有实例方法
_parse() 点击切换源代码
# File rss-0.3.1/lib/rss/xmlscanner.rb, line 16 def _parse begin if @rss.is_a?(String) input = StringIO.new(@rss) else input = @rss end scanner = XMLScan::XMLScanner.new(@listener) scanner.parse(input) rescue XMLScan::Error => e lineno = e.lineno || scanner.lineno || input.lineno raise NotWellFormedError.new(lineno){e.message} end end