Class: Java::JavaUtil::Date

Inherits:
Object
  • Object
show all
Defined in:
lib/jinx/json/date.rb

Instance Method Summary collapse

Instance Method Details

#to_json(*args) ⇒ String

Adds JSON serialization to Java Date. The JSON is deserialized as a Ruby Date.

Parameters:

  • args

    the JSON serialization options

Returns:

  • (String)

    the serialized date



29
30
31
# File 'lib/jinx/json/date.rb', line 29

def to_json(*args)
  to_ruby_date.to_json(*args)
end