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