るりまサーチ

最速Rubyリファレンスマニュアル検索!
992件ヒット [1-100件を表示] (0.036秒)
トップページ > クエリ:Hash[x] > クエリ:OPT[x] > クエリ:hash[x]

別のキーワード

  1. _builtin hash
  2. matrix hash
  3. dbm to_hash
  4. hash []
  5. _builtin to_hash

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Proc#hash -> Integer (24238.0)

self のハッシュ値を返します。

...x], [:opt, :y], [:rest, :other
prc = lambda{|x, y=42, *other|}
p prc.parameters # => x], [:opt, :y], [:rest, :other
prc = proc{|x, y=42, *other|}
p prc.parameters(lambda: true) # => x], [:opt, :y], [:rest, :other
prc = lambda{|x, y=42, *other|}
p prc.parameters(lambda: false) # => x], [:opt, :y],...

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

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

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

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

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

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

OptionParser::Arguable#getopts(short_opt, *long_opt) -> Hash (9580.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 (9448.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 (9448.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 (9436.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 (9436.0)

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

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

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

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

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


@see OptionParser#getopts...

Gem::Command#merge_options(new_options) -> Hash (6402.0)

与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。

...オプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。

@param new_options 新しいコマンドオプションをハッシュで指定します。...

RubyVM::InstructionSequence.compile_option -> Hash (6334.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。

...ル時のデフォルトの最適化オプションを Hash で返
します。

//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option

# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :ope...
...rands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}

@see RubyVM::InstructionSequence.compile_option=...

絞り込み条件を変える

<< 1 2 3 ... > >>