11件ヒット
[1-11件を表示]
(0.033秒)
別のキーワード
ライブラリ
- ビルトイン (11)
検索結果
-
Object
# public _ method(name) -> Method (18126.0) -
オブジェクトの public メソッド name をオブジェクト化した Method オブジェクトを返します。
...name メソッド名を Symbol または String で指定します。
@raise NameError 定義されていないメソッド名や、
protected メソッド名、 private メソッド名を引数として与えると発生します。
//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...