Method: Virtus::Attribute::Coercer#initialize
- Defined in:
- lib/virtus/attribute/coercer.rb
#initialize(type, coercers) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a new coercer object
20 21 22 23 24 |
# File 'lib/virtus/attribute/coercer.rb', line 20 def initialize(type, coercers) super(type) @method = type.coercion_method @coercers = coercers end |