るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.030秒)

別のキーワード

  1. objectspace each_object
  2. _builtin each_object
  3. object to_enum
  4. object enum_for
  5. object send

ライブラリ

検索結果

Object#<=>(other) -> 0 | nil (81766.0)

self === other である場合に 0 を返します。そうでない場合には nil を返します。

...self === other である場合に 0 を返します。そうでない場合には nil を返します。

//emlist[例][ruby]{
a = Object.new
b = Object.new
a <=> a # => 0
a <=> b # => nil
//}

@see Object#===...