るりまサーチ

最速Rubyリファレンスマニュアル検索!
134件ヒット [1-100件を表示] (0.013秒)
トップページ > クエリ:recent[x]

別のキーワード

  1. imap recent
  2. net/imap recent
  3. recent net/imap
  4. recent net::imap

ライブラリ

クラス

モジュール

検索結果

<< 1 2 > >>

Net::IMAP::RECENT -> Symbol (6117.0)

「:Recent」というシンボルを返します。

...「:Recent」というシンボルを返します。

メッセージが「最近」メールボックスに到着したことを意味します。

フラグメッセージ属性として用いられます
(Net::IMAP::FetchData#attr)。

詳しくは 2060 を参照してください。...

Exception#full_message(highlight: true, order: :bottom) -> String (12.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} (12.0)

STATUS コマンドを送り、mailbox のステータスを得ます。

...するハッシュです。

詳しくは 2060 の 6.3.10 を参考にしてください。

例:
p imap.status("inbox", ["MESSAGES", "RECENT"])
#=> {"RECENT"=>0, "MESSAGES"=>44}

@param mailbox 問い合わせ対象のメールボックス(文字列)
@param attr 問合せたいアトリビュ...

Kernel.#abort -> () (6.0)

Ruby プログラムをエラーメッセージ付きで終了します。終了ステータスは 1 固定です。

...#(標準出力)
#=> start
# start1...
# end1 with #<SystemExit: error1>
# start2...
# end2...
#終了ステータス:1
#(標準エラー出力)
#=> error1
# Traceback (most recent call last):
# sample.rb:11:in `<main>': RuntimeError (RuntimeError)
//}

@see Kernel.#exit,Kernel.#exit!...

Kernel.#abort(message) -> () (6.0)

Ruby プログラムをエラーメッセージ付きで終了します。終了ステータスは 1 固定です。

...#(標準出力)
#=> start
# start1...
# end1 with #<SystemExit: error1>
# start2...
# end2...
#終了ステータス:1
#(標準エラー出力)
#=> error1
# Traceback (most recent call last):
# sample.rb:11:in `<main>': RuntimeError (RuntimeError)
//}

@see Kernel.#exit,Kernel.#exit!...

絞り込み条件を変える

NEWS for Ruby 2.7.0 (6.0)

NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...{|v| }
opts.on("-b", "--bar", "bar") {|v| }
opts.on("-c", "--baz", "baz") {|v| }
end.parse!
//}

//emlist{
$ ruby test.rb --baa
Traceback (most recent call last):
test.rb:7:in `<main>': invalid option: --baa (OptionParser::InvalidOption)
Did you mean? baz
bar
//}

* Pathname...

Net::IMAP#select(mailbox) -> Net::IMAP::TaggedResponse (6.0)

SELECT コマンドを送り、指定したメールボックスを処理対象の メールボックスにします。

...Net::IMAP#responses["EXISTS"].last
を調べると、メールボックス内のメールの数がわかります。
また、Net::IMAP#responses["RECENT"].lastで、
最新のメールの数がわかります。
これらの値はセッション中に変わりうることに注意してください...

Net::IMAP::StatusData#attr -> { String => Integer } (6.0)

STATUS 応答の内容をハッシュで返します。

...STATUS 応答の内容をハッシュで返します。

ハッシュのキーは
"MESSAGES", "RECENT", "UIDNEXT", "UIDVALIDITY", "UNSEEN"
などが使われます。

詳しくは 2060 の 6.3.10、7.2.4 を見てください。...

Thread#report_on_exception -> bool (6.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) (6.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 -> bool (6.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

...} }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'

これによってスレッドのエラーを早期に...
<< 1 2 > >>