Module: Reform::Representer::WithOptions
- Included in:
- Contract::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_hash ⇒ Object
38 39 40 |
# File 'lib/reform/representer.rb', line 38 def from_hash(*) super() end |
#options ⇒ Object
30 31 32 |
# File 'lib/reform/representer.rb', line 30 def Options.new end |
#to_hash ⇒ Object
34 35 36 |
# File 'lib/reform/representer.rb', line 34 def to_hash(*) super() end |