るりまサーチ

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

別のキーワード

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

ライブラリ

検索結果

Module#instance_method(name) -> UnboundMethod (13.0)

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

...します。

@raise NameError self に存在しないメソッドを指定した場合に発生します。

@see Module#public_instance_method, Object#method

//emlist[例][ruby]{
class
Interpreter
def do_a() print "there, "; end
def do_d() print "Hello "; end
def do_e() print "!\n"; en...