Class: Kali::Type::Date
- Inherits:
-
DateTime
- Object
- Kali::Type
- DateTime
- Kali::Type::Date
- Defined in:
- lib/kali/type/date.rb
Overview
Used to represent calendar dates.
Instance Method Summary collapse
Methods inherited from DateTime
Methods inherited from Kali::Type
#decode, #encode, #initialize, #parameters
Constructor Details
This class inherits a constructor from Kali::Type
Instance Method Details
#decode!(string) ⇒ Object
12 13 14 |
# File 'lib/kali/type/date.rb', line 12 def decode!(string) ::Date.parse(string) end |
#encode! ⇒ Object
8 9 10 |
# File 'lib/kali/type/date.rb', line 8 def encode!(*) super.split("T").first end |