Class: XMLRPC::XMLParser::XMLScanStreamParser::XMLScanParser
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Inherits: | Object |
Defined in: | lib/xmlrpc/parser.rb |
Constant Summary
-
Entities =
# File 'lib/xmlrpc/parser.rb', line 757{ "lt" => "<", "gt" => ">", "amp" => "&", "quot" => '"', "apos" => "'" }
Instance Attribute Summary
::XMLRPC::XMLParser::StreamParserMixin - Included
Instance Method Summary
- #method_missing(*a)
- #on_cdata(str)
- #on_chardata(str)
- #on_charref(code)
- #on_charref_hex(code)
- #on_entityref(ent)
-
#on_etag(name)
Alias for StreamParserMixin#endElement.
-
#on_stag(name, attrs = [])
Alias for StreamParserMixin#startElement.
- #on_stag_end(name)
- #on_stag_end_empty(name)
- #parse(str)
::XMLRPC::XMLParser::StreamParserMixin - Included
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*a)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 805
def method_missing(*a) end
Instance Method Details
#on_cdata(str)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 784
def on_cdata(str) character(str) end
#on_chardata(str)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 780
def on_chardata(str) character(str) end
#on_charref(code)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 797
def on_charref(code) character(code.chr) end
#on_charref_hex(code)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 801
def on_charref_hex(code) character(code.chr) end
#on_entityref(ent)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 788
def on_entityref(ent) str = Entities[ent] if str character(str) else raise "unknown entity" end end
#on_etag(name)
Alias for StreamParserMixin#endElement.
# File 'lib/xmlrpc/parser.rb', line 771
alias :on_etag :endElement
#on_stag(name, attrs = [])
Alias for StreamParserMixin#startElement.
# File 'lib/xmlrpc/parser.rb', line 770
alias :on_stag :startElement
#on_stag_end(name)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 773
def on_stag_end(name); end
#on_stag_end_empty(name)
[ GitHub ]# File 'lib/xmlrpc/parser.rb', line 775
def on_stag_end_empty(name) startElement(name) endElement(name) end