るりまサーチ

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

別のキーワード

  1. optparse summary_width=
  2. optparse summary_width
  3. optionparser summary_width=
  4. optionparser summary_width
  5. optparse summary_indent

ライブラリ

クラス

検索結果

OptionParser#summary_width=(width) (18142.0)

サマリを表示するときの幅を整数で指定します。

...("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8 # => 8
opts.summary_width # => 8
opts.summarize
# => [" -i\n", " --i...
...nit\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}...

OptionParser#summary_width -> Integer (142.0)

サマリを表示するときの幅を整数で返します。

...head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8
opts.summary_width # =>8
opts.summarize
# => [" -i\n", " --init\...
...n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}...