168件ヒット
[1-100件を表示]
(0.117秒)
ライブラリ
-
net
/ imap (12) - optparse (108)
-
rdoc
/ rdoc (12) -
rubygems
/ command (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12)
クラス
-
Gem
:: Command (12) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Net
:: IMAP :: MailboxQuota (12) - OptionParser (108)
-
RDoc
:: RDoc (12)
検索結果
先頭5件
-
Gem
:: Commands :: BuildCommand # usage -> String (21202.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
Net
:: IMAP :: MailboxQuota # usage -> Integer (21202.0) -
現在のメールボックス内の使用量を返します。
現在のメールボックス内の使用量を返します。 -
Gem
:: Command # usage -> String (18202.0) -
このメソッドはサブクラスで再定義されます。 個々の gem コマンドの使用方法を返します。
このメソッドはサブクラスで再定義されます。
個々の gem コマンドの使用方法を返します。 -
Gem
:: Commands :: DependencyCommand # usage -> String (18202.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
OptionParser
# on _ tail(*arg , &block) -> self (6119.0) -
オプションを取り扱うためのブロックを自身の持つリストの最後に登録します。
...--version や --help の説明をサマリの最後に表示したい時に便利です。
@param arg OptionParser#on と同様です。
@param block OptionParser#on と同様です。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
op......ts.on_tail("-h", "--help")
end
puts opts.help
# => Usage: test [options]
# -i, --init
# -u, --update
# -h, --help
//}
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit
end
opts.on_tail("--version", "S......how version") do
puts OptionParser::Version.join('.')
exit
end
//}
@see OptionParser#on, OptionParser#on_head... -
OptionParser
# banner=(heading) (3119.0) -
サマリの最初に表示される文字列を指定します。
...指定します。
@param heading サマリの最初に表示される文字列を指定します。
//emlist[例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]" # => "Usage: example.rb [options]"
opts.on("-v", "--[no-]ver......bose", "Run verbosely") do |v|
options[:verbose] = v
end
end
opts.banner # => "Usage: example.rb [options]"
//}... -
OptionParser
# to _ a -> [String] (3119.0) -
サマリの各行を要素とした配列を返します。
...とした配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --h... -
OptionParser
# banner -> String (3113.0) -
サマリの最初に表示される文字列を返します。
...します。
//emlist[例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
p opts.banner # => "Usage: example.rb [options]"
//}... -
OptionParser
# help -> String (3113.0) -
サマリの文字列を返します。
...ます。
//emlist[例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v, -...