In Files

  • xmlrpc/create.rb

XMLRPC::XMLWriter::XMLParser

Public Class Methods

new() click to toggle source
 
               # File xmlrpc/create.rb, line 62
def initialize
  require "xmltreebuilder"
end
            

Public Instance Methods

document(*params) click to toggle source
 
               # File xmlrpc/create.rb, line 70
def document(*params)
  XML::SimpleTree::Document.new(*params)
end
            
document_to_str(doc) click to toggle source
 
               # File xmlrpc/create.rb, line 66
def document_to_str(doc)
  doc.to_s
end
            
element(name, attrs, *children) click to toggle source
 
               # File xmlrpc/create.rb, line 78
def element(name, attrs, *children)
  XML::SimpleTree::Element.new(name, attrs, *children)
end
            
pi(name, *params) click to toggle source
 
               # File xmlrpc/create.rb, line 74
def pi(name, *params)
  XML::SimpleTree::ProcessingInstruction.new(name, *params)
end
            
text(txt) click to toggle source
 
               # File xmlrpc/create.rb, line 82
def text(txt)
  XML::SimpleTree::Text.new(txt)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.