Class: Representable::XML::Binding::Hash
- Inherits:
-
Collection
- Object
- Binding
- Representable::XML::Binding
- Collection
- Representable::XML::Binding::Hash
- Defined in:
- lib/representable/xml/binding.rb
Instance Method Summary collapse
Methods included from Binding::Collection
Methods inherited from Representable::XML::Binding
build_for, #deserialize_method, #read, #serialize_method, #serialize_node, #write
Instance Method Details
#deserialize_from(nodes) ⇒ Object
107 108 109 110 111 112 113 114 |
# File 'lib/representable/xml/binding.rb', line 107 def deserialize_from(nodes) hash = {} nodes.children.each do |node| hash[node.name] = content_for node end hash end |