646件ヒット
[1-100件を表示]
(0.037秒)
ライブラリ
クラス
- Exception (80)
- Fiber (18)
- KeyError (16)
-
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: SMTP (36) - OptionParser (24)
- SignalException (12)
- SystemCallError (12)
- Thread (12)
-
Thread
:: SizedQueue (36) -
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ TYPE (12)
モジュール
- Exception2MessageMapper (18)
- Kernel (116)
-
MiniTest
:: Assertions (1) - Psych (27)
- Timeout (18)
- Warning (9)
キーワード
- == (12)
- BasicObject (12)
- Fail (6)
- Fiber (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) - OCSP (12)
- Raise (6)
-
WIN32OLE
_ EVENT (12) - abort (24)
- append (12)
-
assert
_ send (1) -
default
_ event _ sources (12) - deq (12)
- e2mmap (6)
- errno (12)
- exception (24)
-
extend
_ object (6) - fail (36)
- handler= (12)
- inspect (12)
- key (8)
- load (15)
- logger (12)
-
net
/ imap (12) -
net
/ smtp (12) -
on
_ tail (12) - parse (12)
- pop (12)
- raise (66)
- receiver (8)
- require (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
send
_ mail (12) - sendmail (12)
- separator (12)
- shift (12)
- signm (12)
- timeout (18)
-
to
_ s (12) - value (12)
- warn (17)
- 制御構造 (12)
検索結果
先頭5件
-
Exception
# message -> String (18113.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (9207.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
Exception2MessageMapper
. extend _ object(cl) -> () (9100.0) -
@todo
@todo
@param cl -
MiniTest
:: Assertions # assert _ send(array , message = nil) -> true (6207.0) -
引数から、式を取り出して評価した結果が真の場合、検査にパスしたことになります。
...ト、第二要素にメソッド名、
第三要素にパラメータをそれぞれ指定した配列を指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc であ......る場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 取り出した式が偽を返す場合に発生します。
例:
assert_send([%w[foo bar baz], :include?, 'baz'])... -
Net
:: IMAP # append(mailbox , message , flags = nil , date _ time = nil) -> Net :: IMAP :: TaggedResponse (6207.0) -
APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com
hello world
EOF
@param mailbox メッセー......ジを追加するメールボックス名(文字列)
@param message メッセージ文字列
@param flags メッセージに付加するフラグ(Symbol の配列)
@param date_time メッセージの時刻(Time オブジェクト)。省略時は現在時刻が使われる
@raise Net::IMAP::NoRespon... -
WIN32OLE
_ EVENT . message _ loop -> () (6137.0) -
Windowsのメッセージポンプを実行します。
...Windowsのメッセージポンプを実行します。
message_loopメソッドは、Windowsメッセージがキューイングされている限りメッ
セージの読み出しとディスパッチを実行します。
COMのスレッド間/プロセス間通信はスレッド内で呼び出......ef}" #=> ダウンロード=http://www.ruby-lang.org/ja/downloads/ など
end
disp.quit
b = true
end
ie.Navigate2 'http://www.ruby-lang.org/ja/'
loop do
break if b
WIN32OLE_EVENT.message_loop
end
なお、メソッド名はloopですが、呼び出し時および既に......受信するまでループを実行する必要があります。このとき他のスレッ
ドに制御を与える必要があれば、Kernel.#sleepなどを呼び出してくださ
い。message_loopメソッドの呼び出し中はRubyのスレッドの切り替えは行われ
ません。... -
Exception
# full _ message(highlight: true , order: :bottom) -> String (6125.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......back \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
end
//}
@see Exception.to_tty?... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (6107.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (6107.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (3030.0) -
登録されている情報を使用して、例外を発生させます。
...値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>......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::NewExceptionClas... -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (3030.0) -
登録されている情報を使用して、例外を発生させます。
...値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>......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::NewExceptionClas... -
Exception
# to _ s -> String (3013.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...