11件ヒット
[1-11件を表示]
(0.774秒)
トップページ >
:Hash#key
>
:new
>
:include?
>
:transform_keys
>
:merge
>
:ruby 1.8.4 feature
>
:strongly_connected_components
>
:モジュール関数
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![クエリ クエリ](/images/query-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
![種類 種類](/images/type-icon.png)
![条件を削除 [x]](/images/drop-condition-icon.png)
検索結果
-
Kernel
. # Hash(arg) -> Hash (18287.0) -
引数 arg で指定したオブジェクトを to_hash メソッドを呼び出す事で Hash オブジェクトに変換します。nil か [] を指定した場合は空の Hash オブジェクトを返します。
...を to_hash メソッドを呼び出す事で
Hash オブジェクトに変換します。nil か [] を指定した場合は空の
Hash オブジェクトを返します。
@param arg 変換対象のオブジェクトを指定します。
//emlist[例][ruby]{
Hash([]) # => {}
Hash(nil)......# => {}
Hash(key: :value) # => {:key => :value}
Hash([1, 2, 3]) # => TypeError
//}
@raise TypeError 変換できないオブジェクトを指定した場合に発生します。...