Class: Typekit::Converter::DateTime
- Inherits:
-
Object
- Object
- Typekit::Converter::DateTime
- Defined in:
- lib/typekit/converter/datetime.rb
Instance Method Summary collapse
-
#initialize ⇒ DateTime
constructor
A new instance of DateTime.
- #process(result, object) ⇒ Object
Constructor Details
#initialize ⇒ DateTime
Returns a new instance of DateTime.
4 5 |
# File 'lib/typekit/converter/datetime.rb', line 4 def initialize(*) end |
Instance Method Details
#process(result, object) ⇒ Object
7 8 9 |
# File 'lib/typekit/converter/datetime.rb', line 7 def process(result, object) ::DateTime.parse(object) end |