22件ヒット
[1-22件を表示]
(0.047秒)
キーワード
-
$ @ (11) -
$ ERROR _ POSITION (11)
検索結果
-
Kernel
$ $ @ -> [String] | nil (9141.0) -
最後に例外が発生した時のバックトレースを表す配列です。 Kernel.#raise によって設定されます。
...トレースを表す配列です。
Kernel.#raise によって設定されます。
配列の各要素はメソッドの呼び出し位置を示す文字列で形式は
"filename:line"
または
"filename:line:in `methodname'"
です。これは Kernel.#caller が返す値と同じ形式... -
Kernel
$ $ ERROR _ POSITION -> [String] | nil (9109.0) -
$@ の別名
...$@ の別名
require "English"
class SomethingError < StandardError; end
begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end...