Method: Representable::YAML#from_yaml

Defined in:
lib/representable/yaml.rb

#from_yaml(doc, options = {}) ⇒ Object



17
18
19
20
# File 'lib/representable/yaml.rb', line 17

def from_yaml(doc, options={})
  hash = Psych.load(doc)
  from_hash(hash, options, Binding)
end