るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

MiniTest::Assertions#message(message) { ... } -> Proc (27409.0)

与えられたブロックを評価した結果と与えられたメッセージを連結して返します。

...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。

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

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

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

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

@return 文字列を返します。...

Exception#message -> String (24220.0)

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

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

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

Net::HTTPResponse#message -> String (24208.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"
//}...

Kernel#message(format, *arg) -> nil (24202.0)

Kernel.#printf と同じように標準出力にメッセージを出力します。 メッセージ出力後すぐに IO#flush します。

...Kernel.#printf と同じように標準出力にメッセージを出力します。
メッセージ出力後すぐに IO#flush します。

$VERBOSE が真のときは何もしません。

@param format フォーマット文字列です。

@param arg フォーマットされる引数です。...
...@see Kernel.#printf...

絞り込み条件を変える

Exception2MessageMapper#def_e2message(exception_class, message_format) -> Class (15326.0)

すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。

...でに存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。

このフォーマットは Exception2MessageMapper#Raise,
E
xception2MessageMapper#Fail で使用します。

@param exception_class メッセージを登...
...録する例外クラスを指定します。

@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。

@return exception_class を返します。...

Gem::Specification#post_install_message=(message) (12409.0)

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

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

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

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

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

...た例外を標準エラー出力に出力するときと
同じ形式です。
そのため、メソッド呼び出し時に $stderr が変更されておらず、$stderr.tty? が真の場合は
エスケープシーケンスによる文字装飾がついています。

[注意] このメソッド...
...数 highlight と order は 2.5.1 で追加されました。

@param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。

@param order :top か :bottom で...
... Exception.to_tty? が真なら :bottom で偽なら :top です。

//emlist[例][ruby]{
begin
raise "test"
rescue => 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_mes...
...derr が変更されておらず、$stderr.tty? が真の場合は
エスケープシーケンスによる文字装飾がついています。


@param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Ex...
...ception.to_tty? の返り値と同じです。

@param order :top か :bottom で指定する必要があります。
バックトレースの一番奥がエラーメッセージの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tty? が真...
...//emlist[例][ruby]{
begin
raise "test"
rescue => 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...

Net::IMAP::Envelope#message_id -> String | nil (12218.0)

message_id を文字列で返します。

...message_id を文字列で返します。

エンベロープに存在しないときは nil を返します。...

Net::SMTP#open_message_stream(from_addr, *to_addrs) {|f| .... } -> () (12214.0)

メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。

...* puts(str = '') strを出力して CR LFを出力
* print(str) strを出力
* printf(fmt, *args) sprintf(fmt,*args) を出力
* write(str):: str を出力して書き込んだバイト数を返す
* <<(str):: str を出力してストリームオブジェクト...
...

require 'net/smtp'

Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'
f.puts
f.puts 'This is test mail....
...'
}
}

ready は obsolete です。

@param from_addr 送信元のメールアドレス
@param to_addrs 送信先のメールアドレス(複数可、少なくとも1個)

@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイ...

絞り込み条件を変える

Exception2MessageMapper#def_exception(exception_name, message_format, superclass = StandardError) -> Class (12208.0)

exception_name という名前の例外クラスを定義します。

...
e
xception_name という名前の例外クラスを定義します。

@param exception_name 定義する例外クラスの名前をシンボルで指定します。

@param message_format メッセージのフォーマット。

@param superclass 定義する例外のスーパークラスを指定...
...します。
省略すると StandardError を使用します。...
<< 1 2 3 ... > >>