Module: Representable::Binding::Deprecatable
- Included in:
- Representable::Binding
- Defined in:
- lib/representable/binding.rb
Overview
Single entry points for rendering and parsing a property are #compile_fragment and #uncompile_fragment in Mapper.
Instance Method Summary collapse
-
#compile_fragment(options) ⇒ Object
Retrieve value and write fragment to the doc.
-
#uncompile_fragment(options) ⇒ Object
Parse value from doc and update the model property.
Instance Method Details
#compile_fragment(options) ⇒ Object
Retrieve value and write fragment to the doc.
49 50 51 |
# File 'lib/representable/binding.rb', line 49 def compile_fragment() render_pipeline(nil, ).call(nil, ) end |
#uncompile_fragment(options) ⇒ Object
Parse value from doc and update the model property.
54 55 56 |
# File 'lib/representable/binding.rb', line 54 def uncompile_fragment() parse_pipeline([:doc], ).call([:doc], ) end |