Method: Representable::Binding#compile_fragment
- Defined in:
- lib/representable/binding.rb
#compile_fragment(doc) ⇒ Object
Retrieve value and write fragment to the doc.
54 55 56 57 58 59 |
# File 'lib/representable/binding.rb', line 54 def compile_fragment(doc) evaluate_option(:writer, doc) do value = render_filter(get, doc) write_fragment(doc, value) end end |