るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.027秒)
トップページ > バージョン:2.6.0[x] > クエリ:String[x] > クエリ:HELP[x] > クエリ:to_a[x] > ライブラリ:optparse[x]

別のキーワード

  1. win32ole ole_obj_help
  2. win32ole ole_show_help
  3. win32ole ole_method_help
  4. un help
  5. irb/help print_usage

クラス

検索結果

OptionParser#to_a -> [String] (54667.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", " -...