Class | DateTime |
In: |
lib/json/add/core.rb
|
Parent: | Object |
# File lib/json/add/core.rb, line 41 41: def self.json_create(object) 42: args = object.values_at('y', 'm', 'd', 'H', 'M', 'S') 43: of_a, of_b = object['of'].split('/') 44: args << Rational(of_a.to_i, of_b.to_i) 45: args << object['sg'] 46: civil(*args) 47: end