るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

検索結果

OptionParser#summary_indent=(indent) (18142.0)

サマリを表示する時のインデントを文字列で指定します。

...onParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

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

OptionParser#summary_indent -> String (142.0)

サマリを表示する時のインデントを文字列で返します。

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

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