120件ヒット
[101-120件を表示]
(0.185秒)
別のキーワード
ライブラリ
- ビルトイン (120)
キーワード
- == (12)
- arity (12)
-
bind
_ call (12) - eql? (12)
- hash (12)
- inspect (12)
-
original
_ name (12) - owner (12)
-
source
_ location (12) -
to
_ s (12)
検索結果
-
UnboundMethod
# eql?(other) -> bool (3214.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:s......ize)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c #=> false
//}... -
UnboundMethod
# hash -> Integer (3214.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==).unbind
b = method(:eql?).unbind
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}...