Instance Methods
lib/xmlrpc/create.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/create.rb, line 32
def document(*params)
params.join("")
end
No documentation available
lib/xmlrpc/create.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/create.rb, line 28
def document_to_str(doc)
doc
end
No documentation available
lib/xmlrpc/create.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/create.rb, line 40
def element(name, attrs, *children)
raise "attributes not yet implemented" unless attrs.nil?
if children.empty?
"<#{name}/>"
else
"<#{name}>" + children.join("") + "</#{name}>"
end
end
No documentation available
lib/xmlrpc/create.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/create.rb, line 36
def pi(name, *params)
"<?#{name} " + params.join(" ") + " ?>"
end
No documentation available
lib/xmlrpc/create.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/xmlrpc/create.rb, line 49
def text(txt)
cleaned = txt.dup
cleaned.gsub!(/&/, '&')
cleaned.gsub!(/</, '<')
cleaned.gsub!(/>/, '>')
cleaned
end
No documentation available