別のキーワード
ライブラリ
- ビルトイン (113)
- e2mmap (36)
- getoptlong (12)
- logger (62)
-
minitest
/ unit (19) - mkmf (12)
-
net
/ imap (94) -
net
/ smtp (120) - optparse (24)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ user _ interaction (36) -
shell
/ system-command (12) -
syslog
/ logger (12) - thread (6)
- win32ole (12)
クラス
- Exception (44)
- Fiber (18)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - GetoptLong (12)
- Logger (60)
-
Logger
:: Application (2) -
Net
:: IMAP (82) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: SMTP (120) - OptionParser (24)
-
Shell
:: SystemCommand (12) -
Syslog
:: Logger (12) - Thread (12)
-
Thread
:: SizedQueue (36) -
WIN32OLE
_ EVENT (12)
モジュール
- Exception2MessageMapper (36)
- Kernel (12)
-
MiniTest
:: Assertions (19) - Warning (9)
キーワード
- << (12)
- == (12)
- Fail (6)
- Raise (6)
- add (36)
- append (12)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - bind (6)
- complain (12)
- copy (12)
- data (24)
-
def
_ exception (6) - deq (12)
- exception (24)
-
exception
_ details (1) - fail (6)
- handler= (12)
- log (26)
- mailfrom (12)
- move (10)
- notify (12)
-
on
_ tail (12) - pass (1)
- pop (12)
- raise (30)
- rcptto (12)
-
rcptto
_ list (12) - ready (12)
- search (12)
-
send
_ mail (12) - sendmail (12)
- separator (12)
-
set
_ error (12) - shift (12)
- sort (12)
-
uid
_ sort (12) -
uid
_ thread (12) - updated (36)
- warn (9)
検索結果
先頭5件
-
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (21202.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (18315.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Kernel
# message(format , *arg) -> nil (18214.0) -
Kernel.#printf と同じように標準出力にメッセージを出力します。 メッセージ出力後すぐに IO#flush します。
...ように標準出力にメッセージを出力します。
メッセージ出力後すぐに IO#flush します。
$VERBOSE が真のときは何もしません。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@see Kernel.#printf... -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (9337.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 (6232.0) -
例外の整形された文字列を返します。
...order は 2.5.1 で追加されました。
@param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。
@param order :top か :bottom で指定する必要......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......よる文字装飾がついています。
@param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。
@param order :top か :bottom で指定する必要... -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (6226.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...|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 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy S......TPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します
@see Net::SMTP#send_message... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (3226.0) -
exception_name という名前の例外クラスを定義します。
...ption_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定し... -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (3226.0) -
メールを送信します。
...') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr 送信元のメールアドレス
@param to_addrs 送信先の... -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (3131.0) -
登録されている情報を使用して、例外を発生させます。
...登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在し......o
extend Exception2MessageMapper
p def_exception :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::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。... -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (3131.0) -
登録されている情報を使用して、例外を発生させます。
...登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在し......o
extend Exception2MessageMapper
p def_exception :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::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。... -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (3126.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...|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 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy S......TPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します
@see Net::SMTP#send_message... -
Exception2MessageMapper
# fail(exception _ class = nil , *rest) -> () (3113.0) -
登録されている情報を使用して、例外を発生させます。
...登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在し... -
Exception2MessageMapper
# bind(cl) -> () (3107.0) -
@todo
...@todo
@param cl xxx...