Method: Range#to_json

Defined in:
lib/json/add/range.rb

#to_json(*args) ⇒ Object

Stores class name (Range) with JSON array of arguments a which include first (integer), last (integer), and exclude_end? (boolean) as JSON string.



26
27
28
# File 'lib/json/add/range.rb', line 26

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