From 2c44f96e78832dd42e35a9cae6e90dccaf5c2178 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 21 Mar 2014 09:31:44 +0900 Subject: reduce hash creation by using update method --- mrbgems/mruby-hash-ext/mrblib/hash.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'mrbgems/mruby-hash-ext') 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 -- cgit v1.2.3