るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.101秒)
トップページ > クエリ:Ruby[x] > クエリ:String[x] > クエリ:ruby[x] > クエリ:string[x] > クエリ:@[x] > クエリ:instance[x] > クエリ:instance_method[x] > クエリ:method[x] > クラス:UnboundMethod[x] > クエリ:eql?[x] > バージョン:3.3[x]

別のキーワード

  1. csv instance
  2. forwardable instance_delegate
  3. _builtin instance_eval
  4. basicobject instance_eval
  5. webrick/httpservlet get_instance

ライブラリ

検索結果

UnboundMethod#eql?(other) -> bool (54592.0)

自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。

自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に
true を返します。そうでない場合に false を返します。

@param other 自身と比較したいオブジェクトを指定します。

//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true

c = Array.instance_method(:size)
p a == c ...