ライブラリ
- ビルトイン (13)
-
json
/ add / core (2) -
syck
/ rubytypes (2) -
yaml
/ rubytypes (1)
検索結果
先頭5件
-
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (215) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...ックトレース情報に errinfo を設定し、設定されたバックトレース
情報を返します。
@param errinfo nil、String あるいは String の配列のいずれかを指定します。... -
Exception
# backtrace -> [String] (108) -
バックトレース情報を返します。
...{sourceline}:in `#{method}'"
(メソッド内の場合)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
def methd
raise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in `methd'", "filename.r... -
Exception
# message -> String (104) -
エラーメッセージをあらわす文字列を返します。
エラーメッセージをあらわす文字列を返します。
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end -
Exception
# to _ s -> String (104) -
エラーメッセージをあらわす文字列を返します。
エラーメッセージをあらわす文字列を返します。
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end -
Exception
# to _ str -> String (104) -
エラーメッセージをあらわす文字列を返します。
エラーメッセージをあらわす文字列を返します。
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end -
Exception
# message -> String (103) -
エラーメッセージをあらわす文字列を返します。
エラーメッセージをあらわす文字列を返します。
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end -
Exception
# to _ s -> String (103) -
エラーメッセージをあらわす文字列を返します。
エラーメッセージをあらわす文字列を返します。
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end -
Exception
# taguri -> String (102) -
自身のタグ URI を返します。
自身のタグ URI を返します。 -
Exception
# to _ json(*args) -> String (102) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから Hash#to_json を呼び出しています。
@param args 引数はそのまま Hash#to_json に渡されます。
@see Hash#to_json
