Skip to content
Permalink
Browse files

Merge pull request #656 from kostya/hash_each

fix hash#each yields array
  • Loading branch information
alex committed Apr 23, 2013
2 parents 336dbe2 + 9bc0219 commit f57cc6b6c1f05d462ea7dc382b50f64455caa836
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib-topaz/hash.rb
  2. +1 −1 spec/tags/core/hash/each_pair_tags.txt
  3. +1 −1 spec/tags/core/hash/each_tags.txt
@@ -8,7 +8,7 @@ def each(&block)
rescue StopIteration
return self
end
yield key, value
yield [key, value]
end
end
alias each_pair each
@@ -1,2 +1,2 @@
fails:Hash#each_pair yields a [[key, value]] Array for each pair to a block expecting |*args|
fails:Hash#each_pair properly expands (or not) child class's 'each'-yielded args
fails:Hash#each_pair yields the key only to a block expecting |key,|
@@ -1,2 +1,2 @@
fails:Hash#each yields a [[key, value]] Array for each pair to a block expecting |*args|
fails:Hash#each properly expands (or not) child class's 'each'-yielded args
fails:Hash#each yields the key only to a block expecting |key,|

0 comments on commit f57cc6b

Please sign in to comment.
You can’t perform that action at this time.