rng == obj รข true or false
Instance Public methods
Returns true
only if obj
is a Range, has equivalent begin and end items (by
comparing them with ==
), and has the same exclude_end? setting as the
range.
(0..2) == (0..2) #=> true (0..2) == Range.new(0,2) #=> true (0..2) == (0...2) #=> false
Please login to continue.