Class: RSS::REXMLLikeXMLParser
- Inherits:
-
XML::Parser
- Object
- XML::Parser
- RSS::REXMLLikeXMLParser
- Includes:
- XML::Encoding_ja
- Defined in:
- lib/rss/xmlparser.rb
Constant Summary
Constants inherited from XML::Parser
Instance Method Summary collapse
- #character(data) ⇒ Object
- #endElement(name) ⇒ Object
- #listener=(listener) ⇒ Object
- #processingInstruction(target, content) ⇒ Object
- #startElement(name, attrs) ⇒ Object
- #xmlDecl(version, encoding, standalone) ⇒ Object
Instance Method Details
#character(data) ⇒ Object
48 49 50 |
# File 'lib/rss/xmlparser.rb', line 48 def character(data) @listener.text(data) end |
#endElement(name) ⇒ Object
44 45 46 |
# File 'lib/rss/xmlparser.rb', line 44 def endElement(name) @listener.tag_end(name) end |
#listener=(listener) ⇒ Object
36 37 38 |
# File 'lib/rss/xmlparser.rb', line 36 def listener=(listener) @listener = listener end |
#processingInstruction(target, content) ⇒ Object
56 57 58 |
# File 'lib/rss/xmlparser.rb', line 56 def processingInstruction(target, content) @listener.instruction(target, content) end |
#startElement(name, attrs) ⇒ Object
40 41 42 |
# File 'lib/rss/xmlparser.rb', line 40 def startElement(name, attrs) @listener.tag_start(name, attrs) end |
#xmlDecl(version, encoding, standalone) ⇒ Object
52 53 54 |
# File 'lib/rss/xmlparser.rb', line 52 def xmlDecl(version, encoding, standalone) @listener.xmldecl(version, encoding, standalone == 1) end |