instance method Method#==
self == other -> bool
-
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
- [PARAM] other:
- 自身と比較したいオブジェクトを指定します。
s = "bar" a = s.method(:size) b = s.method(:size) p a == b #=> true
class Method
self == other -> bool
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
s = "bar" a = s.method(:size) b = s.method(:size) p a == b #=> true