るりまサーチ

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

別のキーワード

  1. _builtin sum
  2. enumerable sum
  3. array sum
  4. string sum
  5. sum _builtin

ライブラリ

クラス

キーワード

検索結果

OptionParser#summary_indent -> String (24355.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"]
//}...

OptionParser#summary_indent=(indent) (12255.0)

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

..._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#summarize(to = [], width = self.summary_width, max = width - 1, indent= self.summary_indent) -> () (6540.0)

サマリを指定された to へと加えていきます。

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

opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n...
...", " --help\n"]
//}...

OptionParser#summarize(to = [], width = self.summary_width, max = width - 1, indent= self.summary_indent) {|line| ... } -> () (6540.0)

サマリを指定された to へと加えていきます。

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

opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n", " --init\n", " -u\n", " --update\n", " -h\n...
...", " --help\n"]
//}...