種類
- インスタンスメソッド (537)
- 特異メソッド (295)
- モジュール関数 (214)
- モジュール (11)
ライブラリ
- ビルトイン (399)
- drb (11)
- e2mmap (78)
- getoptlong (11)
- logger (57)
-
minitest
/ unit (19) - mkmf (11)
-
net
/ imap (86) -
net
/ smtp (138) -
net
/ telnet (4) - optparse (22)
- psych (22)
-
rubygems
/ commands / lock _ command (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ user _ interaction (33) -
shell
/ system-command (12) - syslog (88)
-
syslog
/ logger (11) - thread (6)
- timeout (16)
- win32ole (11)
クラス
-
Errno
:: EXXX (22) - Exception (62)
- Fiber (15)
- FrozenError (12)
-
Gem
:: Commands :: LockCommand (11) -
Gem
:: RemoteFetcher :: FetchError (11) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - GetoptLong (11)
- KeyError (24)
- Logger (55)
-
Logger
:: Application (2) - NameError (17)
-
Net
:: IMAP (75) -
Net
:: IMAP :: BodyTypeMessage (11) -
Net
:: SMTP (138) -
Net
:: Telnet (4) - NoMethodError (17)
- OptionParser (22)
-
Shell
:: SystemCommand (12) -
Syslog
:: Logger (11) - SystemCallError (33)
- SystemExit (11)
- Thread (11)
-
Thread
:: SizedQueue (33) -
WIN32OLE
_ EVENT (11)
モジュール
- Exception2MessageMapper (78)
- Kernel (121)
-
MiniTest
:: Assertions (19) - Process (22)
- Psych (22)
- Syslog (88)
- Timeout (16)
- Warning (16)
キーワード
- << (11)
- == (11)
- DRbProtocol (11)
- Fail (12)
- Raise (12)
- abort (44)
- add (33)
- alert (11)
- append (11)
- 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 (11)
- copy (11)
- crit (11)
- data (22)
- debug (11)
-
def
_ exception (12) - deq (11)
- emerg (11)
- err (11)
- exception (33)
-
exception
_ details (1) -
extend
_ object (6) - fail (39)
- handler= (11)
- info (11)
- load (11)
- log (24)
- mailfrom (11)
- move (9)
- new (162)
- notice (11)
- notify (12)
-
on
_ tail (11) - parse (11)
- pass (1)
- pop (11)
- raise (59)
- rcptto (11)
-
rcptto
_ list (11) - ready (11)
- require (11)
- search (11)
-
send
_ mail (11) - sendmail (11)
- separator (11)
-
set
_ error (11) - shift (11)
- sort (11)
- start (28)
- timeout (16)
-
uid
_ sort (11) -
uid
_ thread (11) - updated (33)
- warn (27)
- warning (11)
検索結果
先頭5件
-
Exception2MessageMapper
. message(klass , exp) -> String | nil (21214.0) -
@todo
...@todo
@param klass
@param exp... -
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (21201.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (18314.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Kernel
# message(format , *arg) -> nil (18213.0) -
Kernel.#printf と同じように標準出力にメッセージを出力します。 メッセージ出力後すぐに IO#flush します。
...ように標準出力にメッセージを出力します。
メッセージ出力後すぐに IO#flush します。
$VERBOSE が真のときは何もしません。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@see Kernel.#printf... -
Exception2MessageMapper
. def _ e2message(klass , exception _ class , message _ format) -> Class (9342.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...ラーメッセージ用フォーマット message_format を関連づけます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマッ... -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (9336.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセー... -
Exception2MessageMapper
. e2mm _ message(klass , exp) -> String | nil (9214.0) -
@todo
...@todo
@param klass
@param exp... -
Exception
# full _ message(highlight: true , order: :bottom) -> String (6231.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| . . . . } -> () (6225.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(klass , exception _ name , message _ format , superklass = StandardError) -> Class (3231.0) -
exception_name という名前の例外クラスを定義します。
...tion_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定します。......Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@param superklass 定義する例外クラスのスーパークラスを指定します。
省略すると StandardError を使用します。
@return 定義した例外クラ... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (3225.0) -
exception_name という名前の例外クラスを定義します。
...ption_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定し... -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (3225.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) -> () (3130.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) -> () (3130.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)
# という例外が発生します。...