11件ヒット
[1-11件を表示]
(0.052秒)
ライブラリ
- ビルトイン (11)
検索結果
-
Object
# public _ method(name) -> Method (18133.0) -
オブジェクトの public メソッド name をオブジェクト化した Method オブジェクトを返します。
...vate メソッド名を引数として与えると発生します。
//emlist[][ruby]{
1.public_method(:to_int) #=> #<Method: Integer#to_int>
1.public_method(:p) # method `p' for class `Integer' is private (NameError)
//}
@see Object#method,Object#public_send,Module#public_instance_method...