Class: String
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_xml_rpc(xml_node) ⇒ Object
9 10 11 12 13 |
# File 'lib/rapuncel/core_ext/string.rb', line 9 def self.from_xml_rpc xml_node #warn "I, String.from_xml_rpc have been given an xml_node with the wrong tag (name of #{xml_node.name}). My tag should be 'string'. Will still parse at your risk" unless ['string'].include? xml_node.name.downcase xml_node.text #just give back the string between the 'string' tags end |
Instance Method Details
#to_xml_rpc(b = Rapuncel.get_builder) ⇒ Object
5 6 7 |
# File 'lib/rapuncel/core_ext/string.rb', line 5 def to_xml_rpc b = Rapuncel.get_builder b.string self end |