-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
#each()
, and #each_with_index()
both simply return the collection for Enumerable objects.
But this is a bit weird, as the receiver is the TaskbarProgress object, and the enumerable collection is a parameter. I would still say not to make things work non-rubyish.
(A nitpick is that assigning a reference to the result of a block form method, and then returning it in the next statement is frivolous.)
If you want a block form that returns the ALL block results, it should be named collect()
, alias map()
, etc.; and select()
, find_all()
, etc. for filtered results.
Metadata
Metadata
Assignees
Labels
No labels