118件ヒット
[101-118件を表示]
(0.149秒)
別のキーワード
ライブラリ
- ビルトイン (118)
キーワード
- arity (12)
- curry (11)
- hash (12)
- inspect (12)
-
original
_ name (12) - receiver (12)
-
source
_ location (12) -
super
_ method (11) -
to
_ s (12) - unbind (12)
検索結果
-
Method
# hash -> Integer (114.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==)
b = method(:eql?)
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}... -
Method
# super _ method -> Method | nil (114.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...るメソッドを Method オブジェ
クトにして返します。
@see UnboundMethod#super_method
//emlist[例][ruby]{
class Super
def foo
"superclass method"
end
end
class Sub < Super
def foo
"subclass method"
end
end
m = Sub.new.method(:foo) # => #<Method: Sub#foo>
m.call #......=> "subclass method"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}...