Module: Reform::Representer::WithOptions

Included in:
Form::Setup::Representer, Form::Sync::InputRepresenter
Defined in:
lib/reform/representer.rb

Overview

Invokes #to_hash and/or #from_hash with #options. This provides a hook for other modules to add options for the representational process.

Defined Under Namespace

Classes: Options

Instance Method Summary collapse

Instance Method Details

#from_hashObject



31
32
33
# File 'lib/reform/representer.rb', line 31

def from_hash(*)
  super(options)
end

#optionsObject



23
24
25
# File 'lib/reform/representer.rb', line 23

def options
  Options.new
end

#to_hashObject



27
28
29
# File 'lib/reform/representer.rb', line 27

def to_hash(*)
  super(options)
end