るりまサーチ

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

別のキーワード

  1. stringio set_encoding
  2. _builtin set_encoding
  3. tracer set_get_line_procs
  4. set new
  5. openssl set

ライブラリ

モジュール

キーワード

検索結果

<< < ... 3 4 5 >>

Kernel.#caller(start, length) -> [String] | nil (7.0)

start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。

...個数を指定します。

@param range 取得したいスタックの範囲を示す Range オブジェクトを指定します。

@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations

//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p ca...
<< < ... 3 4 5 >>