るりまサーチ

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

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub

検索結果

<< 1 2 > >>

Exception#message -> String (21210.0)

エラーメッセージをあらわす文字列を返します。

...エラーメッセージをあらわす文字列を返します。

//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...

Net::HTTPResponse#message -> String (21210.0)

HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。

...して返すメッセージです。
例えば 'Not Found' などです。

msg は obsolete です。使わないでください。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}...

OptionParser::ParseError#message -> String (21204.0)

標準エラーに出力するメッセージを返します。

標準エラーに出力するメッセージを返します。

@return 文字列を返します。

MiniTest::Assertions#exception_details(exception, message) -> String (9409.0)

与えられた例外の詳細を文字列として返します。

...与えられた例外の詳細を文字列として返します。

@param exception 例外を指定します。

@param message メッセージを指定します。...

Exception#full_message(highlight: true, order: :bottom) -> String (9221.0)

例外の整形された文字列を返します。

...Exception.to_tty? の返り値と同じです。

@param order :top か :bottom で指定する必要があります。
バックトレースの一番奥がエラーメッセージの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tty? が...
...ue => e
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (RuntimeError)\n"
$stderr = STDERR
p e.full_message # => "\e[1mTrace...
...back \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
end
//}

@see Exception.to_tty?...

絞り込み条件を変える

Gem::Specification#post_install_message -> String (9203.0)

インストール完了後に表示するメッセージを返します。

インストール完了後に表示するメッセージを返します。

GetoptLong#error_message -> String | nil (9203.0)

現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。

現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。

Net::IMAP::BodyTypeMessage#content_id -> String | nil (9202.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeMessage#description -> String | nil (9202.0)

Content-Description の値を文字列で返します。

...Content-Description の値を文字列で返します。

@see 2045...

Exception#to_s -> String (6110.0)

エラーメッセージをあらわす文字列を返します。

...エラーメッセージをあらわす文字列を返します。

//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...

絞り込み条件を変える

<< 1 2 > >>