123456789_123456789_123456789_123456789_123456789_

Class: RSS::XMLScanParser

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseParser
Instance Chain:
self, BaseParser
Inherits: RSS::BaseParser
Defined in: lib/rss/xmlscanner.rb

Class Attribute Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

BaseParser - Inherited

Constructor Details

This class inherits a constructor from RSS::BaseParser

Class Method Details

.listener

[ GitHub ]

  
# File 'lib/rss/xmlscanner.rb', line 9

def listener
  XMLScanListener
end

Instance Method Details

#_parse (private)

[ GitHub ]

  
# File 'lib/rss/xmlscanner.rb', line 15

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