eql?(other) -> bool[permalink][rdoc][edit]-
自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。そうでない場合に false を返します。
- [PARAM]
other: - 自身と比較したい数値を指定します。
例
1.0.eql?(1) # => false 1.0.eql?(1.0) # => true - [PARAM]
eql?(other) -> bool[permalink][rdoc][edit]自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。そうでない場合に false を返します。
other:
例
1.0.eql?(1) # => false
1.0.eql?(1.0) # => true