るりまサーチ

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

別のキーワード

  1. parseerror args
  2. parseerror to_s
  3. parseerror reason
  4. parseerror recover
  5. parseerror reason=

ライブラリ

検索結果

OptionParser.getopts(*opts) -> Hash (14.0)

引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)

...am opts 引数を文字列で指定します。

@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスになります。


@see OptionParser#getopts...

OptionParser.getopts(argv, *opts) -> Hash (14.0)

引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)

...am opts 引数を文字列で指定します。

@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスになります。


@see OptionParser#getopts...