別のキーワード
ライブラリ
- ビルトイン (162)
- e2mmap (36)
- getoptlong (22)
- logger (46)
-
minitest
/ unit (12) -
net
/ http (33) -
net
/ imap (295) -
net
/ smtp (110) - optparse (44)
-
rubygems
/ commands / lock _ command (11) -
rubygems
/ specification (22) -
rubygems
/ user _ interaction (33) -
shell
/ system-command (12) -
syslog
/ logger (22) - thread (6)
- win32ole (11)
クラス
- Exception (73)
- Fiber (15)
-
Gem
:: Commands :: LockCommand (11) -
Gem
:: Specification (22) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - GetoptLong (22)
- KeyError (14)
- Logger (44)
-
Logger
:: Application (2) -
Net
:: HTTPResponse (33) -
Net
:: IMAP (97) -
Net
:: IMAP :: BodyTypeMessage (176) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: SMTP (110) - OptionParser (22)
-
OptionParser
:: ParseError (22) -
RDoc
:: Options (11) -
Shell
:: SystemCommand (12) - SignalException (11)
-
Syslog
:: Logger (11) -
Syslog
:: Logger :: Formatter (11) - SystemCallError (11)
- Thread (11)
-
Thread
:: SizedQueue (33) -
WIN32OLE
_ TYPE (11)
モジュール
- Exception2MessageMapper (36)
-
MiniTest
:: Assertions (12)
キーワード
- == (11)
- Fail (6)
- Raise (6)
- add (33)
- append (11)
-
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ match (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) - bind (6)
- body (11)
- call (11)
- complain (11)
-
content
_ id (11) - copy (11)
- data (22)
-
def
_ exception (6) -
default
_ event _ sources (11) - deq (11)
- description (11)
- disposition (11)
- encoding (11)
- envelope (11)
- errno (11)
- exception (22)
-
exception
_ details (1) - expunge (11)
- extension (11)
- fail (6)
- greeting (11)
- inspect (11)
- key (7)
- language (11)
- lines (11)
- log (24)
- mailfrom (11)
- md5 (11)
-
media
_ subtype (11) -
media
_ type (11) - move (9)
- msg (11)
- multipart? (11)
- notify (12)
-
on
_ tail (11) - param (11)
- parts (11)
- pass (1)
- pop (11)
- raise (26)
- rcptto (11)
-
rcptto
_ list (11) - ready (11)
- receiver (7)
- search (11)
-
send
_ mail (11) - sendmail (11)
- separator (11)
-
set
_ error (11) - shift (11)
- signm (11)
- size (11)
- skip (1)
- sort (11)
- subtype (11)
-
to
_ s (22) -
uid
_ sort (11) -
uid
_ thread (11) - updated (33)
- value (11)
- warn (11)
検索結果
先頭5件
-
Exception
# message -> String (21114.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (21108.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...P サーバがリザルトコードに付加して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.p......arse(uri))
response.message # => "OK"
//}... -
OptionParser
:: ParseError # message -> String (21102.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (18309.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (12325.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...に存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録......する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@return exception_class を返します。... -
Gem
:: Specification # post _ install _ message=(message) (12309.0) -
インストール完了後に表示するメッセージをセットします。
...インストール完了後に表示するメッセージをセットします。
@param message メッセージを指定します。... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (12308.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定... -
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 を出力して書き込んだバイト......。
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 接続がタイ... -
Gem
:: Specification # post _ install _ message -> String (12202.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Exception
# exception(error _ message) -> Exception (9340.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...定した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定......します。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
Net
:: IMAP :: BodyTypeMessage # disposition -> Net :: IMAP :: ContentDisposition | nil (9201.0) -
Content-Dispotition の値を返します。
...Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183...