268件ヒット
[1-100件を表示]
(0.042秒)
別のキーワード
クラス
-
Net
:: POP3 (84) -
Net
:: POPMail (120) - Thread (4)
-
Thread
:: Queue (12)
モジュール
-
CGI
:: HtmlExtension (48)
キーワード
- address (12)
- all (12)
- header (12)
-
ignore
_ deadlock= (4) - length (12)
- mail (12)
-
n
_ bytes (12) -
n
_ mails (12) -
num
_ waiting (12) - number (12)
-
open
_ timeout (12) - port (12)
-
read
_ timeout (12) -
scrolling
_ list (24) -
set
_ debug _ output (12) - size (12)
- top (12)
- uidl (12)
-
unique
_ id (12)
検索結果
先頭5件
-
Net
:: POPMail # pop -> String (18282.0) -
メールを受信します。
...を返します。
pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。
使用例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110,
'YourAccount', 'YourPassword') {|pop|
pop.mails.each do |m|
puts m.pop
end
}......t/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした場合に発生します
@raise Net::POPE......rror サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します... -
CGI
:: HtmlExtension # popup _ menu(attributes) -> String (9201.0) -
select 要素を生成します。
...select 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2... -
CGI
:: HtmlExtension # popup _ menu(name = "" , *values) -> String (9201.0) -
select 要素を生成します。
...例:
popup_menu("name", "foo", "bar", "baz")
# <SELECT NAME="name">
# <OPTION VALUE="foo">foo</OPTION>
# <OPTION VALUE="bar">bar</OPTION>
# <OPTION VALUE="baz">baz</OPTION>
# </SELECT>
popup_menu("name", ["foo......="foo">foo</OPTION>
# <OPTION VALUE="bar" SELECTED>bar</OPTION>
# <OPTION VALUE="baz">baz</OPTION>
# </SELECT>
popup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
# <SELECT NAME="name">
# <OPTION VALUE="1">Foo</OPTION>... -
Net
:: POP3 # set _ debug _ output(f) -> () (9167.0) -
デバッグ用の出力 f をセットします。
...net/pop'
pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}
実行結果:
POP session started: pop.example.com:110 (POP)
-> "+OK popd <1162042773.26346.155555a1861c@pop.example.com>\r\n"
<- "APOP Yo... -
CGI
:: HtmlExtension # scrolling _ list(attributes) -> String (9101.0) -
select 要素を生成します。
...select 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2... -
CGI
:: HtmlExtension # scrolling _ list(name = "" , *values) -> String (9101.0) -
select 要素を生成します。
...例:
popup_menu("name", "foo", "bar", "baz")
# <SELECT NAME="name">
# <OPTION VALUE="foo">foo</OPTION>
# <OPTION VALUE="bar">bar</OPTION>
# <OPTION VALUE="baz">baz</OPTION>
# </SELECT>
popup_menu("name", ["foo......="foo">foo</OPTION>
# <OPTION VALUE="bar" SELECTED>bar</OPTION>
# <OPTION VALUE="baz">baz</OPTION>
# </SELECT>
popup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
# <SELECT NAME="name">
# <OPTION VALUE="1">Foo</OPTION>... -
Net
:: POPMail # length -> Integer (9101.0) -
メールのサイズ (単位はバイト) をかえします。
メールのサイズ (単位はバイト) をかえします。 -
Thread
# ignore _ deadlock=(bool) (6107.0) -
デッドロック検知を無視する機能をon/offします。デフォルト値はfalseです。
...。
trueを渡すとデッドロックを検知しなくなります。
//emlist[][ruby]{
Thread.ignore_deadlock = true
queue = Thread::Queue.new
trap(:SIGUSR1){queue.push "Received signal"}
# ignore_deadlockがfalseだとエラーが発生する
puts queue.pop
//}
@see Thread#ignore_deadlock... -
Thread
:: Queue # num _ waiting -> Integer (6107.0) -
キューを待っているスレッドの数を返します。
...キューを待っているスレッドの数を返します。
//emlist[例][ruby]{
require 'thread'
q = SizedQueue.new(1)
q.push(1)
t = Thread.new { q.push(2) }
sleep 0.05 until t.stop?
q.num_waiting # => 1
q.pop
t.join
//}...