Module: Melitta::Coercers

Defined in:
lib/melitta/coercers.rb

Defined Under Namespace

Classes: Boolean, Date, Float, Identity, Integer, MissingInput, MonthYear, OptionalInput, String, Tree

Class Method Summary collapse

Class Method Details

.evaluate(coercer) ⇒ Object



3
4
5
6
# File 'lib/melitta/coercers.rb', line 3

def self.evaluate(coercer)
  coercer = coercer.is_a?(Class) ? coercer.name : coercer
  "Melitta::Coercers::#{coercer}".constantize
end