Class: Gloo::Convert::NilClassToDateTime
- Inherits:
-
Object
- Object
- Gloo::Convert::NilClassToDateTime
- Defined in:
- lib/gloo/convert/nilclass_to_datetime.rb
Instance Method Summary collapse
-
#convert(value) ⇒ Object
Convert a nil to a date.
Instance Method Details
#convert(value) ⇒ Object
Convert a nil to a date.
15 16 17 |
# File 'lib/gloo/convert/nilclass_to_datetime.rb', line 15 def convert( value ) return Chronic.parse( '' ) end |