るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.020秒)

別のキーワード

  1. << rexml::attribute#name
  2. add rexml::attribute#name
  3. inspect? irb::context#inspect_mode
  4. handle_interrupt thread#raise
  5. inspect? irb::context#inspect_mode=

ライブラリ

検索結果

Module#public_instance_method(name) -> UnboundMethod (7.0)

self の public インスタンスメソッド name をオブジェクト化した UnboundMethod を返します。

...として与えると発生します。

//emlist[例][ruby]{
Kernel.public_instance_method(:object_id) #=> #<UnboundMethod: Kernel#object_id>
Kernel.public_instance_method(:p) # method `p' for module `Kernel' is private (NameError)
//}

@see Module#instance_method,Object#public_method...