るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.232秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:_builtin[x] > クエリ:hash[x] > クラス:Numeric[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

検索結果

Numeric#eql?(other) -> bool (8009.0)

自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。 そうでない場合に false を返します。

...しい場合に true を返します。
そうでない場合に false を返します。

Numeric
のサブクラスは、eql? で比較して等しい数値同士が同じハッシュ値を返すように
hash
メソッドを適切に定義する必要があります。

@param other 自身と比...