るりまサーチ

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

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

Hash#rehash -> self (18243.0)

キーのハッシュ値を再計算します。

...@raise RuntimeError Hash#eachなどのイテレータの評価途中でrehashすると発生します。
@return selfを返します。

//emlist[例][ruby]{
a
= [ "a", "b" ]
h = { a => 100 }

p h[a] #=> 100

a
[0] = "z"
p h[a] #=> nil

h.rehash
p h[a] #=> 100
//}

@see Object#hash...

Hash#hash -> Integer (18225.0)

自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。

...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。

//emlist[例][ruby]{
a
= {}
p a.hash #=> 0
a
[1] = :x
p a.hash #=> 329543
//}...

FileUtils#sh(*cmd) {|result, status| ... } (18220.0)

与えられたコマンドを実行します。

...@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。


例:
sh
%{ls -ltr}

sh
'ls', 'file with spaces'

# check exit status after command runs
sh
%{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatu...

Hash#to_hash -> self (18201.0)

self を返します。

...self を返します。

//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}

@see Object#to_hash, Hash#to_h...

絞り込み条件を変える

Gem::QuickLoader#push_all_highest_version_gems_on_load_path (15201.0)

prelude.c で定義されている内部用のメソッドです。

prelude.c で定義されている内部用のメソッドです。

Gem::QuickLoader#push_gem_version_on_load_path (15201.0)

prelude.c で定義されている内部用のメソッドです。

prelude.c で定義されている内部用のメソッドです。

MatchData#hash -> Integer (15201.0)

self のマッチ対象になった文字列、元になった正規表現オブジェクト、マッチ した位置を元にハッシュ値を計算して返します。

self のマッチ対象になった文字列、元になった正規表現オブジェクト、マッチ
した位置を元にハッシュ値を計算して返します。

Shell#rehash -> {} (15201.0)

登録されているシステムコマンドの情報をクリアします。 通常、使うことはありません。

登録されているシステムコマンドの情報をクリアします。
通常、使うことはありません。
<< 1 2 3 ... > >>