Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 f57cc6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib-topaz/hash.rb
Expand Up @@ -8,7 +8,7 @@ def each(&block)
rescue StopIteration
return self
end
yield key, value
yield [key, value]
end
end
alias each_pair each
Expand Down
2 changes: 1 addition & 1 deletion spec/tags/core/hash/each_pair_tags.txt
@@ -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,|
2 changes: 1 addition & 1 deletion spec/tags/core/hash/each_tags.txt
@@ -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.