Class: Range
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.fjson_create(object) ⇒ Object
76 77 78 |
# File 'lib/fiveruns/json/add/core.rb', line 76 def self.fjson_create(object) new(*object['a']) end |
Instance Method Details
#to_fjson(*args) ⇒ Object
80 81 82 83 84 85 |
# File 'lib/fiveruns/json/add/core.rb', line 80 def to_fjson(*args) { 'json_class' => self.class.name, 'a' => [ first, last, exclude_end? ] }.to_fjson(*args) end |