Method: Range#==

Defined in:
lib/source/ruby.rb

#==(object) ⇒ Object

call-seq:

rng == obj -> true or false

Returns true only if obj is a Range, has equivalent beginning and end items (by comparing them with ==), and has the same exclude_end? setting as rng.

(0..2) == (0..2)            #=> true
(0..2) == Range.new(0,2)    #=> true
(0..2) == (0...2)           #=> false


4861
4862
4863
4864
# File 'lib/source/ruby.rb', line 4861

def ==(object)
  `if(object.constructor!==c$Range){return false;}`
  `this.__start__.m$_eql2(object.__start__)&&this.__end__.m$_eql2(object.__end__)&&this.__exclusive__==object.__exclusive__`
end