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
BaseParser - Inherited
Class Method Summary
Instance Attribute Summary
BaseParser - Inherited
Instance Method Summary
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. } end end