るりまサーチ

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

別のキーワード

  1. net/http head
  2. http head2
  3. net/http head2
  4. http request_head
  5. net/http request_head

ライブラリ

検索結果

OptionParser#to_a -> [String] (18121.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", " -u, --update\n...