Class: Virtus::Coercion::Date
- Inherits:
-
Object
- Object
- Virtus::Coercion
- Object
- Virtus::Coercion::Date
- Extended by:
- TimeCoercions
- Defined in:
- lib/virtus/coercion/date.rb
Overview
Coerce Date values
Constant Summary
Constants inherited from Object
Object::COERCION_METHOD_REGEXP
Constants included from TypeLookup
Class Method Summary collapse
-
.to_date(value) ⇒ Date
Passthrough the value.
Methods included from TimeCoercions
to_date, to_datetime, to_string, to_time
Methods inherited from Object
to_array, to_hash, to_integer, to_string
Methods inherited from Virtus::Coercion
Methods included from TypeLookup
#determine_type, extended, #primitive
Methods included from Options
#accept_options, #accepted_options, #options
Class Method Details
.to_date(value) ⇒ Date
Passthrough the value
20 21 22 |
# File 'lib/virtus/coercion/date.rb', line 20 def self.to_date(value) value end |