ライブラリ
- ビルトイン (3)
検索結果
-
Method
# equal?(other) -> bool (15101) -
指定された other が self 自身である場合のみ真を返します。 これは Object クラスで定義されたデフォルトの動作で す。
...。
これは Object クラスで定義されたデフォルトの動作で
す。
@param other 自身と比較したいオブジェクトを指定します。
s = "bar"
a = s.method(:size)
b = s.method(:size)
p a.eql?(b) #=> false
p a.eql?(a) #=> true
@see Method#==...
