summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mrbgems/mruby-hash-ext/mrblib/hash.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgems/mruby-hash-ext/mrblib/hash.rb b/mrbgems/mruby-hash-ext/mrblib/hash.rb
index 71a518238..504848a74 100644
--- a/mrbgems/mruby-hash-ext/mrblib/hash.rb
+++ b/mrbgems/mruby-hash-ext/mrblib/hash.rb
@@ -1,5 +1,8 @@
class Hash
+ # ISO does not define Hash#each_pair, so each_pair is defined in gem.
+ alias each_pair each
+
##
# call-seq:
# hsh.merge!(other_hash) -> hsh
@@ -33,7 +36,6 @@ class Hash
self
end
- alias each_pair each
alias update merge!
##