Class: Range
- Defined in:
- lib/crazy_ivan/vendor/json-1.1.7/lib/json/add/core.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(object) ⇒ Object
80 81 82 |
# File 'lib/crazy_ivan/vendor/json-1.1.7/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/crazy_ivan/vendor/json-1.1.7/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 |