るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.050秒)
トップページ > クエリ:String[x] > クエリ:h[x] > クエリ:public_method[x] > バージョン:2.3.0[x] > クラス:Object[x]

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. enumerable to_h
  4. array to_h
  5. openstruct to_h

ライブラリ

検索結果

Object#public_method(name) -> Method (72961.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...