Module: Maxwell::Agent::Coercable::ClassMethods
- Defined in:
- lib/maxwell/agent/coercable.rb
Instance Method Summary collapse
Instance Method Details
#coerce(key, as) ⇒ Object
30 31 32 |
# File 'lib/maxwell/agent/coercable.rb', line 30 def coerce(key, as) @coercions[key] = as end |
#coercions ⇒ Object
26 27 28 |
# File 'lib/maxwell/agent/coercable.rb', line 26 def coercions @coercions ||= {} end |