Module: Representable::Decorator::Coercion::ClassMethods
- Defined in:
- lib/representable/decorator/coercion.rb
Instance Method Summary collapse
Instance Method Details
#property(name, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/representable/decorator/coercion.rb', line 16 def property(name, ={}) if [:type] [:decorator_scope] = true # call setter on decorator so coercion kicks in. create_writer(name) create_reader(name) end super # Representable::Coercion. end |