るりまサーチ

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

別のキーワード

  1. rake sh
  2. fileutils sh
  3. constants lock_sh
  4. _builtin lock_sh
  5. sync sh

検索結果

<< 1 2 3 ... > >>

Gem::Security::OPT -> Hash (18201.0)

ほとんどのメソッドで使用するデフォルトのオプションを返します。

ほとんどのメソッドで使用するデフォルトのオプションを返します。

Gem::LocalRemoteOptions#add_bulk_threshold_option (15200.0)

オプション --bulk-threshold を追加します。

...オプション --bulk-threshold を追加します。...

RDoc::Options#show_hash -> bool (15200.0)

コマンドライン引数の --show-hash オプションを指定していた場合、true を 返します。そうでない場合は false を返します。

...コマンドライン引数の --show-hash オプションを指定していた場合、true を
返します。そうでない場合は false を返します。...

optparse/shellwords (12000.0)

OptionParser#on で使用可能な引数に Shellwords 追加されます。 オプションの引数は Shellwords.#shellwords によって配列に変換されてから、 OptionParser#on のブロックに渡されます。

...OptionParser#on で使用可能な引数に Shellwords
追加されます。
オプションの引数は Shellwords.#shellwords によって配列に変換されてから、
Opt
ionParser#on のブロックに渡されます。

//emlist[][ruby]{
require 'optparse/shellwords'
opt
s = OptionParser.new...
...opts.on("-s VAL", Shellwords){|a|
p a #=> ["hoge", "foo", "bar"]
}
opt
s.parse!

# ruby command -s hoge\ foo\ bar
//}...

OptionParser::Arguable#getopts(short_opt, *long_opt) -> Hash (9546.0)

指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。

...指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。

コマンドラインに - もしくは -- を指定した場合、それ以降の解析を行ないません。

@param short_opt ショートネームのオプション(-f や -fx)...
...ときは空文字列を指定します。
オプションが引数をとる場合は直後に ":" を付けます。

@param long_opt ロングネームのオプション(--version や --bufsize=512)を文字列で指定をします。
オプションが引数をと...
...ise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。

//emlist[t.rb][ruby]{
require 'optparse'
params = ARGV.getopts(...

絞り込み条件を変える

OptionParser#getopts(*opts) -> Hash (9312.0)

引数をパースした結果を、Hash として返します。

...引数をパースした結果を、Hash として返します。

配列 argv を与えた場合、argv をパースします。そうでない場合は、
default_argv をパースします。

//emlist[][ruby]{
opt
= OptionParser.new
params = opt.getopts(ARGV, "ab:", "foo", "bar:")
# params["a"]...
...ram argv パースしたい配列を指定します。

@param opts 引数を文字列で指定します。

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

OptionParser#getopts(argv, *opts) -> Hash (9312.0)

引数をパースした結果を、Hash として返します。

...引数をパースした結果を、Hash として返します。

配列 argv を与えた場合、argv をパースします。そうでない場合は、
default_argv をパースします。

//emlist[][ruby]{
opt
= OptionParser.new
params = opt.getopts(ARGV, "ab:", "foo", "bar:")
# params["a"]...
...ram argv パースしたい配列を指定します。

@param opts 引数を文字列で指定します。

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

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

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

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

@param argv パースしたい配列を指定します。

@param opts 引数を文字列で指定します。

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


@see OptionParser#getopts...

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

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

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

@param argv パースしたい配列を指定します。

@param opts 引数を文字列で指定します。

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


@see OptionParser#getopts...
<< 1 2 3 ... > >>