62件ヒット
[1-62件を表示]
(0.010秒)
クラス
- Exception (8)
-
Net
:: IMAP (24) -
Net
:: IMAP :: StatusData (12) - Thread (18)
キーワード
- attr (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) - select (12)
- status (12)
検索結果
先頭5件
-
Exception
# full _ message(highlight: true , order: :bottom) -> String (13.0) -
例外の整形された文字列を返します。
...Traceback \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[1mTraceback \e[m(most recent call last):\ntest.... -
Net
:: IMAP # status(mailbox , attr) -> {String => Integer} (13.0) -
STATUS コマンドを送り、mailbox のステータスを得ます。
...するハッシュです。
詳しくは 2060 の 6.3.10 を参考にしてください。
例:
p imap.status("inbox", ["MESSAGES", "RECENT"])
#=> {"RECENT"=>0, "MESSAGES"=>44}
@param mailbox 問い合わせ対象のメールボックス(文字列)
@param attr 問合せたいアトリビュ... -
Net
:: IMAP # select(mailbox) -> Net :: IMAP :: TaggedResponse (7.0) -
SELECT コマンドを送り、指定したメールボックスを処理対象の メールボックスにします。
...Net::IMAP#responses["EXISTS"].last
を調べると、メールボックス内のメールの数がわかります。
また、Net::IMAP#responses["RECENT"].lastで、
最新のメールの数がわかります。
これらの値はセッション中に変わりうることに注意してください... -
Net
:: IMAP :: StatusData # attr -> { String => Integer } (7.0) -
STATUS 応答の内容をハッシュで返します。
...STATUS 応答の内容をハッシュで返します。
ハッシュのキーは
"MESSAGES", "RECENT", "UIDNEXT", "UIDVALIDITY", "UNSEEN"
などが使われます。
詳しくは 2060 の 6.3.10、7.2.4 を見てください。... -
Thread
# report _ on _ exception -> bool (7.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...ption # => true
a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.sto... -
Thread
# report _ on _ exception=(newstate) (7.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...ption # => true
a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.sto...