るりまサーチ

最速Rubyリファレンスマニュアル検索!
1013件ヒット [1-100件を表示] (0.057秒)
トップページ > クエリ:-[x] > クエリ:message[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

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

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

Exception#message -> String (18208.0)

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

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

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

Net::HTTPResponse#message -> String (18208.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 (18202.0)

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

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

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

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

@param arg フォーマットされる引数です。

@see Kernel.#printf

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

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

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

@return 文字列を返します。

絞り込み条件を変える

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

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

...用フォーマット message_format を関連づけます。

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

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

@param message_format メッセー...

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

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

...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...

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

message_id を文字列で返します。

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

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

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

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

...信先メールアドレスを文字列で渡します。

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: te...
...TPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します

@see Net::SMTP#send_message...

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

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

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

絞り込み条件を変える

GetoptLong#error_message -> String | nil (6202.0)

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

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