Class: Range
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(object) ⇒ Object
80 81 82 |
# File 'lib/gems/json_pure-1.1.3/lib/json/add/core.rb', line 80 def self.json_create(object) new(*object['a']) end |
Instance Method Details
#to_json(*args) ⇒ Object
84 85 86 87 88 89 |
# File 'lib/gems/json_pure-1.1.3/lib/json/add/core.rb', line 84 def to_json(*args) { 'json_class' => self.class.name, 'a' => [ first, last, exclude_end? ] }.to_json(*args) end |