method

eql?

v2_6_3 - Show latest stable - Class: Numeric
eql?(p1)
public

Returns true if num and numeric are the same type and have equal values. Contrast this with Numeric#==, which performs type conversions.

1 == 1.0        #=> true
1.eql?(1.0)     #=> false
1.0.eql?(1.0)   #=> true