Class: Coercible::Coercer::Date
- Includes:
- TimeCoercions
- Defined in:
- lib/project/coercer/date.rb
Overview
Coerce Date values
Constant Summary
Constants inherited from Object
Object::COERCION_METHOD_REGEXP
Constants included from Options
Constants included from TypeLookup
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#to_date(value) ⇒ Date
Passthrough the value.
Methods included from TimeCoercions
#to_datetime, #to_string, #to_time
Methods inherited from Object
#coerced?, #initialize, #inspect, #to_array, #to_hash, #to_integer, #to_string
Methods included from Options
#accept_options, #accepted_options, extended, #options
Methods included from TypeLookup
Constructor Details
This class inherits a constructor from Coercible::Coercer::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Coercible::Coercer::Object
Instance Method Details
#to_date(value) ⇒ Date
Passthrough the value
23 24 25 |
# File 'lib/project/coercer/date.rb', line 23 def to_date(value) value end |