summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-hash-ext/mrblib/hash.rb
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2014-05-10 20:16:19 +0900
committeryui-knk <[email protected]>2014-05-10 20:16:19 +0900
commitd88a9d761fe096f1c28497f54c94297b02d128b7 (patch)
tree9b4aa4d04ebc83b887582704b1fc2b6f62d20d46 /mrbgems/mruby-hash-ext/mrblib/hash.rb
parentadea2ca371e6d986eb794d996c0f6165a2881b9b (diff)
downloadmruby-d88a9d761fe096f1c28497f54c94297b02d128b7.tar.gz
mruby-d88a9d761fe096f1c28497f54c94297b02d128b7.zip
Add comment to Hash#each_pair. And change the line
Add comment about ISO. Current place is misleading so change line No.
Diffstat (limited to 'mrbgems/mruby-hash-ext/mrblib/hash.rb')
-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!
##