るりまサーチ

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

別のキーワード

  1. english $ofs
  2. _builtin $5
  3. _builtin $6
  4. _builtin $4
  5. _builtin $8

種類

ライブラリ

クラス

モジュール

検索結果

Kernel$$ERROR_INFO -> Exception | nil (18213.0)

$! の別名

...$! の別名

require "English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_INFO.backtrace #=> ["sample.rb:5"]
p $ERROR_INFO.to_s #=> "SomethingError"
end...

Object::SCRIPT_LINES__ -> Hash (106.0)

ソースファイル別にまとめられたソースコードの各行。

...ire 'pp'
SCRIPT_LINES__ = {}
require 'English'
pp SCRIPT_LINES__

# => {"/usr/local/lib/ruby/1.6/English.rb"=>
# ["alias $ERROR_INFO $!\n",
# "alias $ERROR_POSITION $@\n",
# "alias $LOADED_FEATURES $\"\n",
# :...