Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/yodel/types/date.rb
Instance Method Summary collapse
Instance Method Details
#to_json(*a) ⇒ Object
2 3 4 |
# File 'lib/yodel/types/date.rb', line 2 def to_json(*a) "new Date(#{year}, #{month}, #{day})".to_json(*a) end |