るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.138秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:d[x] > クエリ:lock[x] > クラス:OptionParser[x]

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d=
  4. rsa d
  5. matrix d

ライブラリ

検索結果

OptionParser#on_head(*arg, &block) -> self (6202.0)

オプションを取り扱うためのブロックを自身の持つリストの最初に登録します。

...ます。

@param arg OptionParser#on と同様です。

@param block OptionParser#on と同様です。

//emlist[例][ruby]{
require "optparse"

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

puts opts.help

# => Us...
...age: test [options]
# -i, --init
# -u, --update
# -h, --help
//}

@see OptionParser#on, OptionParser#on_tail...