search for: __content__

Displaying 2 results from an estimated 2 matches for "__content__".

Did you mean: __constant__
2007 Jul 18
2
Hash.from_xml
...#39;'t cater for. 1. Tag Attributes are wiped out. - <tag1 attr1=''1''>Content</tag1> #=> { "tag1" => "Content" } - I think it should return - {"tag1" => { "attr1" => ''1'', "__content__" => "Content" } 2. Mixed content can throw an error or get clobbered - <tag1>Content <em>is</em> Clobbered</tag1> #=> Raises a Private error called on array gsub - <tag1>Content <em>is</em></tag1> #=> Clobb...
2006 Jul 24
0
parsing xml from post
...sion="1.0" encoding="UTF-8"?> <Transaction id="1"> <Authorization> <Merid>test</Merid> </Authorization> </Transaction> def self.typecast_xml_value(value) case value when Hash if value.has_key?("__content__") content = translate_xml_entities(value["__content__"]) case value["type"] when "integer" then content.to_i when "boolean" then content == "true" when "datetime" then Time.parse(con...