Class: Coercible::Coercer::Hash
- Inherits:
-
Object
- Object
- Coercible::Coercer::Hash
- Defined in:
- lib/date_time_precision/compat/coercible.rb
Instance Method Summary collapse
Instance Method Details
#to_date(value) ⇒ Object
3 4 5 |
# File 'lib/date_time_precision/compat/coercible.rb', line 3 def to_date(value) value.to_date end |
#to_datetime(value) ⇒ Object
7 8 9 |
# File 'lib/date_time_precision/compat/coercible.rb', line 7 def to_datetime(value) value.to_datetime end |
#to_time(value) ⇒ Object
11 12 13 |
# File 'lib/date_time_precision/compat/coercible.rb', line 11 def to_time(value) value.to_time end |