ライブラリ
- ビルトイン (165)
- e2mmap (36)
- getoptlong (22)
- logger (79)
-
minitest
/ unit (19) - mkmf (11)
-
net
/ http (33) -
net
/ imap (295) -
net
/ smtp (110) - optparse (44)
-
rubygems
/ specification (11) -
rubygems
/ user _ interaction (33) -
shell
/ system-command (12) -
syslog
/ logger (88) - thread (6)
- win32ole (22)
クラス
- Exception (73)
- Fiber (15)
-
Gem
:: Specification (11) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - GetoptLong (22)
- KeyError (14)
- Logger (66)
-
Logger
:: Application (2) -
Logger
:: LogDevice (11) -
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 (77) -
Syslog
:: Logger :: Formatter (11) - SystemCallError (11)
- Thread (11)
-
Thread
:: SizedQueue (33) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (11)
モジュール
- Exception2MessageMapper (36)
- Kernel (11)
-
MiniTest
:: Assertions (19) - Warning (3)
キーワード
- << (11)
- == (11)
- Fail (6)
- Raise (6)
- add (33)
- 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)
- body (11)
- call (11)
-
content
_ id (11) - copy (11)
- data (22)
- debug (11)
-
def
_ exception (6) -
default
_ event _ sources (11) - deq (11)
- description (11)
- disposition (11)
- encoding (11)
- envelope (11)
- errno (11)
- error (11)
- exception (22)
-
exception
_ details (1) - expunge (11)
- extension (11)
- fail (6)
- fatal (11)
- formatter (11)
- greeting (11)
- handler= (11)
- info (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)
- sort (11)
- subtype (11)
-
to
_ s (22) -
uid
_ sort (11) -
uid
_ thread (11) - unknown (11)
- updated (33)
- value (11)
- warn (25)
- write (11)
検索結果
先頭5件
-
Exception
# message -> String (21314.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (21309.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Net
:: HTTPResponse # message -> String (21308.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...HTTP サーバがリザルトコードに付加して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(U......RI.parse(uri))
response.message # => "OK"
//}... -
OptionParser
:: ParseError # message -> String (21302.0) -
標準エラーに出力するメッセージを返します。
...標準エラーに出力するメッセージを返します。
@return 文字列を返します。... -
Kernel
# message(format , *arg) -> nil (18302.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 (12425.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...に存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録......する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@return exception_class を返します。... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (12408.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定......します。
省略すると StandardError を使用します。... -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (12314.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...持っています。
* puts(str = '') strを出力して CR LFを出力
* print(str) strを出力
* printf(fmt, *args) sprintf(fmt,*args) を出力
* write(str):: str を出力して書き込んだバイト数を返す
* <<(str):: str を出力してストリー......、
to_addrs には送信先メールアドレスを文字列で渡します。
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 すでにセッションが終... -
Gem
:: Specification # post _ install _ message -> String (12302.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (9613.0) -
型が持つソースインターフェイスを取得します。
...す。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォ......TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = WIN32OLE_T......YPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返されたインターフェイスが選択されます。
次のサンプル... -
Exception
# exception(error _ message) -> Exception (9440.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定します。
//emlist[例][ruby]{
begi......n
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}...