From d88a9d761fe096f1c28497f54c94297b02d128b7 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 10 May 2014 20:16:19 +0900 Subject: Add comment to Hash#each_pair. And change the line Add comment about ISO. Current place is misleading so change line No. --- mrbgems/mruby-hash-ext/mrblib/hash.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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! ## -- cgit v1.2.3