diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-10 20:54:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-10 20:54:18 +0900 |
| commit | fb77b033a505fc5332ea24d1c619972ec6cb1eba (patch) | |
| tree | 6dd6942ab4b38be9de63adfdb5e3528f92ceac80 | |
| parent | 98e035ae0939822152fac369083280be8acdf85e (diff) | |
| parent | d88a9d761fe096f1c28497f54c94297b02d128b7 (diff) | |
| download | mruby-fb77b033a505fc5332ea24d1c619972ec6cb1eba.tar.gz mruby-fb77b033a505fc5332ea24d1c619972ec6cb1eba.zip | |
Merge pull request #2229 from yui-knk/add-comment-each_pair
Add comment to Hash#each_pair. And change the line
| -rw-r--r-- | mrbgems/mruby-hash-ext/mrblib/hash.rb | 4 |
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! ## |
