Class: Representable::Coercion::Coercer
- Inherits:
-
Object
- Object
- Representable::Coercion::Coercer
- Defined in:
- lib/representable/coercion.rb
Instance Method Summary collapse
-
#coerce(name, v) ⇒ Object
TODO: test me.
Instance Method Details
#coerce(name, v) ⇒ Object
TODO: test me.
8 9 10 11 12 |
# File 'lib/representable/coercion.rb', line 8 def coerce(name, v) # TODO: test me. # set and get the value as i don't know where exactly coercion happens in virtus. send("#{name}=", v) send(name) end |