diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-21 09:31:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-21 09:31:44 +0900 |
| commit | 2c44f96e78832dd42e35a9cae6e90dccaf5c2178 (patch) | |
| tree | 52121a3a9f0845c25a40aeaa975068805d9d599f /mrbgems/mruby-hash-ext | |
| parent | 287f317f051894b53f43c659d89e75a46f2203ad (diff) | |
| download | mruby-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.rb | 1 |
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 |
