Class: CastingAttrAccessor::Parser::DateTime
- Defined in:
- lib/casting_attr_accessor/parser/date_time.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#default_value, #initialize, #readers, #storage_var, #writers
Constructor Details
This class inherits a constructor from CastingAttrAccessor::Parser::Base
Instance Method Details
#parse(value) ⇒ Object
5 6 7 |
# File 'lib/casting_attr_accessor/parser/date_time.rb', line 5 def parse(value) ::DateTime.parse(value) end |