るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.275秒)
トップページ > クエリ:@[x] > クエリ:public_instance_method[x] > クラス:Object[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

Object#public_method(name) -> Method (25.0)

オブジェクトの public メソッド name をオブジェクト化した Method オブジェクトを返します。

...クトの public メソッド name をオブジェクト化した
Method オブジェクトを返します。

@
param 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...