Class: Range

Inherits:
Object
  • Object
show all
Defined in:
lib/client_side_validations/core_ext/range.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



4
5
6
# File 'lib/client_side_validations/core_ext/range.rb', line 4

def as_json(*)
  [first, last]
end

#to_json(options = nil) ⇒ Object



8
9
10
# File 'lib/client_side_validations/core_ext/range.rb', line 8

def to_json(options = nil)
  as_json(options).inspect
end