Method: Representable::HashMethods#create_representation_with
- Defined in:
- lib/representable/hash_methods.rb
#create_representation_with(doc, options, format) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/representable/hash_methods.rb', line 3 def create_representation_with(doc, , format) hash = filter_keys_for!(represented, ) # FIXME: this modifies options and replicates logic from Representable. bin = representable_map(, format).first Collect::Hash[*bin.default_render_fragment_functions].(hash, {doc: doc, options: , binding: bin, represented: represented, decorator: self}) end |