Class: ActiveNode::Typecasting::TimeTypecaster
- Inherits:
-
Object
- Object
- ActiveNode::Typecasting::TimeTypecaster
- Defined in:
- lib/active_node/typecasting/time_typecaster.rb
Instance Method Summary collapse
Instance Method Details
#call(value) ⇒ Object
7 8 9 |
# File 'lib/active_node/typecasting/time_typecaster.rb', line 7 def call(value) value.to_time if value.respond_to? :to_time end |