Method: Representable::XML::Binding::Hash#deserialize_from
- Defined in:
- lib/representable/xml/binding.rb
#deserialize_from(nodes) ⇒ Object
114 115 116 117 118 119 120 121 |
# File 'lib/representable/xml/binding.rb', line 114 def deserialize_from(nodes) hash = {} nodes.children.each do |node| hash[node.name] = content_for node end hash end |