Method: Representable::XML::Binding#read

Defined in:
lib/representable/xml/binding.rb

#read(node) ⇒ Object



26
27
28
29
30
31
# File 'lib/representable/xml/binding.rb', line 26

def read(node)
  nodes = find_nodes(node)
  return FragmentNotFound if nodes.size == 0 # TODO: write dedicated test!

  deserialize_from(nodes)
end