summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-hash-ext
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 09:31:44 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-21 09:31:44 +0900
commit2c44f96e78832dd42e35a9cae6e90dccaf5c2178 (patch)
tree52121a3a9f0845c25a40aeaa975068805d9d599f /mrbgems/mruby-hash-ext
parent287f317f051894b53f43c659d89e75a46f2203ad (diff)
downloadmruby-2c44f96e78832dd42e35a9cae6e90dccaf5c2178.tar.gz
mruby-2c44f96e78832dd42e35a9cae6e90dccaf5c2178.zip
reduce hash creation by using update method
Diffstat (limited to 'mrbgems/mruby-hash-ext')
-rw-r--r--mrbgems/mruby-hash-ext/mrblib/hash.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-hash-ext/mrblib/hash.rb b/mrbgems/mruby-hash-ext/mrblib/hash.rb
index 3d512b574..723a0b907 100644
--- a/mrbgems/mruby-hash-ext/mrblib/hash.rb
+++ b/mrbgems/mruby-hash-ext/mrblib/hash.rb
@@ -12,4 +12,5 @@ class Hash
end
alias each_pair each
+ alias update merge!
end