Method: Representable::HashMethods#update_properties_from
- Defined in:
- lib/representable/hash_methods.rb
#update_properties_from(doc, options, format) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/representable/hash_methods.rb', line 10 def update_properties_from(doc, , format) hash = filter_keys_for!(doc, ) bin = representable_map(, format).first value = Collect::Hash[*bin.default_parse_fragment_functions].(hash, fragment: hash, document: doc, binding: bin, represented: represented, options: , decorator: self) represented.replace(value) end |