module Representable::Binding::Deprecatable

Single entry points for rendering and parsing a property are compile_fragment and uncompile_fragment in Mapper.

Public Instance Methods

compile_fragment(options) click to toggle source

Retrieve value and write fragment to the doc.

# File lib/representable/binding.rb, line 49
def compile_fragment(options)
  render_pipeline(nil, options).call(nil, options)
end
uncompile_fragment(options) click to toggle source

Parse value from doc and update the model property.

# File lib/representable/binding.rb, line 54
def uncompile_fragment(options)
  parse_pipeline(options[:doc], options).call(options[:doc], options)
end