Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #533 from jstepien/enumerable-inject
More complete Enumerable#inject
- Loading branch information
Showing
with
19 additions
and 8 deletions.
@@ -1,7 +1,2 @@ | ||
fails:Enumerable#inject can take two argument | ||
fails:Enumerable#inject ignores the block if two arguments | ||
fails:Enumerable#inject can take a symbol argument | ||
fails:Enumerable#inject without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulator | ||
fails:Enumerable#inject gathers whole arrays as elements when each yields multiple | ||
fails:Enumerable#inject without inject arguments(legacy rubycon) | ||
fails:Enumerable#inject returns nil when fails(legacy rubycon) |