608件ヒット
[601-608件を表示]
(0.141秒)
ライブラリ
クラス
- Array (12)
- DBM (12)
-
Encoding
:: Converter (24) - GDBM (12)
- Hash (64)
- Method (12)
- Object (12)
- Pathname (36)
-
REXML
:: Child (12) -
REXML
:: Parent (12) -
Rake
:: FileList (48) - SDBM (12)
- Set (12)
- String (276)
- StringScanner (12)
- UnboundMethod (12)
-
YAML
:: DBM (12)
モジュール
- Kernel (16)
キーワード
- arity (24)
- encode (36)
- freeze (12)
- gsub (60)
- gsub! (60)
- merge (24)
- merge! (14)
-
pathmap
_ replace (12) -
replace
_ child (12) -
replace
_ with (12) - replacement (12)
- replacement= (12)
- string (12)
- sub (72)
- sub! (48)
-
sub
_ ext (12) - timeout (16)
- tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - update (14)
検索結果
-
Hash
# merge(*others) -> Hash (107.0) -
selfとothersのハッシュの内容を順番にマージ(統合)した結果を返します。 デフォルト値はselfの設定のままです。
...selfとothersのハッシュの内容を順番にマージ(統合)した結果を返します。
デフォルト値はselfの設定のままです。
self と others に同じキーがあった場合はブロック付きか否かで
判定方法が違います。ブロック付きのときはブ......常に others の値を使います。
othersがハッシュではない場合、othersのメソッドto_hashを使って暗黙の変換を試みます。
@param others マージ用のハッシュまたはメソッド to_hash でハッシュに変換できるオブジェクトです。
@return マ......ージした結果を返します
//emlist[][ruby]{
h1 = { "a" => 100, "b" => 200 }
h2 = { "b" => 246, "c" => 300 }
h3 = { "b" => 357, "d" => 400 }
h1.merge #=> {"a"=>100, "b"=>200}
h1.merge(h2) #=> {"a"=>100, "b"=>246, "c"=>300}
h1.merge(h2, h3) #=> {"a"=>100, "b"=>357, "c"=>300, "d... -
Hash
# merge(other) -> Hash (107.0) -
selfとotherのハッシュの内容をマージ(統合)した結果を返します。デフォルト値はselfの設定のままです。
...selfとotherのハッシュの内容をマージ(統合)した結果を返します。デフォルト値はselfの設定のままです。
self と other に同じキーがあった場合はブロック付きか否かで
判定方法が違います。ブロック付きのときはブロックを......常に other の値を使います。
otherがハッシュではない場合、otherのメソッドto_hashを使って暗黙の変換を試みます。
@param other マージ用のハッシュまたはメソッド to_hash でハッシュに変換できるオブジェクトです。
@return マー......ジした結果を返します
//emlist[][ruby]{
h1 = { "a" => 100, "b" => 200 }
h2 = { "b" => 254, "c" => 300 }
h1.merge() # => {"a"=>100, "b"=>200}
h1.merge(h2) # => {"a"=>100, "b"=>254, "c"=>300}
h1.merge(h2){|key, oldval, newval| newval - oldval}
# => {"a"=>100, "b"=>54, "...