Method: Time#to_json
- Defined in:
- lib/json/add/time.rb
#to_json(*args) ⇒ Object
Stores class name (Time) with number of seconds since epoch and number of microseconds for Time as JSON string
35 36 37 |
# File 'lib/json/add/time.rb', line 35 def to_json(*args) as_json.to_json(*args) end |