114件ヒット
[101-114件を表示]
(0.057秒)
別のキーワード
ライブラリ
- ビルトイン (18)
-
irb
/ cmd / help (12) - monitor (48)
- optparse (36)
クラス
- Fiber (18)
-
IRB
:: ExtendCommand :: Help (12) - Monitor (36)
- OptionParser (36)
モジュール
- MonitorMixin (12)
検索結果
-
MonitorMixin
# mon _ enter -> () (131.0) -
モニターをロックします。
...け mon_exit を呼ばなければモニターは
解放されません。
//emlist[例][ruby]{
require 'monitor'
buf = []
buf.extend(MonitorMixin)
buf.mon_enter
buf.mon_enter
//}
Mutex#lock ではデッドロックが起きます。
//emlist[Mutex でデッドロックする例][ruby]{
m = Mutex... -
OptionParser
# separator(sep) -> () (119.0) -
サマリにオプションを区切るための文字列 sep を挿入します。 オプションにいくつかの種類がある場合に、サマリがわかりやすくなります。
...][ruby]{
require 'optparse'
opts = OptionParser.new
opts.banner = "Usage: example.rb [options]"
opts.separator ""
opts.separator "Specific options:"
opts.on("-r", "--require LIBRARY") do |lib|
options.library << lib
end
opts.separator ""
opts.separator "Common options:"
opts.on_tail("-h"......, "--help", "Show this message") do
puts opts
exit
end
//}...