Class: XMLRPC::XMLWriter::XMLParser
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Abstract
|
|
Instance Chain:
self,
Abstract
|
|
Inherits: |
XMLRPC::XMLWriter::Abstract
|
Defined in: | lib/xmlrpc/create.rb |
Class Method Summary
- .new ⇒ XMLParser constructor
Instance Method Summary
- #document(*params)
- #document_to_str(doc)
- #element(name, attrs, *children)
- #pi(name, *params)
- #text(txt)
Abstract
- Inherited
Constructor Details
.new ⇒ XMLParser
# File 'lib/xmlrpc/create.rb', line 62
def initialize require "xmltreebuilder" end
Instance Method Details
#document(*params)
[ GitHub ]# File 'lib/xmlrpc/create.rb', line 70
def document(*params) XML::SimpleTree::Document.new(*params) end
#document_to_str(doc)
[ GitHub ]# File 'lib/xmlrpc/create.rb', line 66
def document_to_str(doc) doc.to_s end
#element(name, attrs, *children)
[ GitHub ]# File 'lib/xmlrpc/create.rb', line 78
def element(name, attrs, *children) XML::SimpleTree::Element.new(name, attrs, *children) end
#pi(name, *params)
[ GitHub ]# File 'lib/xmlrpc/create.rb', line 74
def pi(name, *params) XML::SimpleTree::ProcessingInstruction.new(name, *params) end
#text(txt)
[ GitHub ]# File 'lib/xmlrpc/create.rb', line 82
def text(txt) XML::SimpleTree::Text.new(txt) end