るりまサーチ

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

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

検索結果

<< < 1 2 3 4 > >>

Exception#full_message(highlight: true, order: :bottom) -> String (9120.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 (9102.0)

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

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

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

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

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

@see 2045...

Net::IMAP::BodyTypeMessage#extension -> Array | nil (9101.0)

メッセージの拡張データを返します。

メッセージの拡張データを返します。

Exception2MessageMapper#Fail(exception_class = nil, *rest) -> () (6119.0)

登録されている情報を使用して、例外を発生させます。

...xception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。

例:

class Foo
extend Exception2MessageMapp...
...tion :NewExceptionClass, "message...%d, %d and %d" # =>

def foo
Raise NewExceptionClass, 1, 2, 3
end
end

Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。

Foo.Raise Foo::NewException...
...Class, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。...

絞り込み条件を変える

Exception2MessageMapper#Raise(exception_class = nil, *rest) -> () (6119.0)

登録されている情報を使用して、例外を発生させます。

...xception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。

例:

class Foo
extend Exception2MessageMapp...
...tion :NewExceptionClass, "message...%d, %d and %d" # =>

def foo
Raise NewExceptionClass, 1, 2, 3
end
end

Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。

Foo.Raise Foo::NewException...
...Class, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。...

Exception2MessageMapper#fail(exception_class = nil, *rest) -> () (6101.0)

登録されている情報を使用して、例外を発生させます。

...れている情報を使用して、例外を発生させます。

@param exception_class 例外クラス。

@param rest メッセージに埋め込む値。

@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場...

Exception#to_s -> String (6008.0)

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

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

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

OptionParser::ParseError#to_s -> String (6002.0)

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

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

@return 文字列を返します。

Exception2MessageMapper#bind(cl) -> () (6001.0)

@todo

@todo

@param cl xxx

絞り込み条件を変える

MiniTest::Assertions#assert_includes(collection, object, message = nil) -> true (3208.0)

与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。

...れている場合、検査にパスしたことになります。

@param collection 任意のコレクションを指定します。

@param object 任意のオブジェクトを指定します。

@param message 検査に失敗した場合に表示するメッセージを指定します。...
...文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。

@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与えられたコ...

MiniTest::Assertions#assert_operator(operand1, operator, operand2, message = nil) -> true (3120.0)

与えられたオブジェクトから作成する式を評価した結果が真を返す場合、検査にパスしたことになります。

...定します。

@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。

@raise MiniTest::Assertion 与えられたオブ...
...ジェクトから作成する式を評価した結果が真でない場合に発生します。

例:
# 以下の二つは同じ
assert_operator('aaa', :==, 'aaa', 'message')
assert('aaa'.__send__(:==, 'aaa'), 'message')...

RDoc::Options#warn(message) -> nil (3118.0)

--verbose オプションを指定していた場合に message を 標準エラー出力 $stderr に出力します。

...--verbose オプションを指定していた場合に message を 標準エラー出力
$stderr に出力します。...
<< < 1 2 3 4 > >>