るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.007秒)

別のキーワード

  1. mkmf try_run
  2. erb run
  3. server run
  4. kernel try_run
  5. rubygems/server run

クラス

検索結果

OptionParser#help -> String (18122.0)

サマリの文字列を返します。

...ire "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, --[no-]verbose Run verb...

OptionParser#to_s -> String (3022.0)

サマリの文字列を返します。

...ire "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, --[no-]verbose Run verb...