Commit 9e58074
committed
Refactor: Change Refinement To Understand That each Passes One Item
Why This Change Is Necessary
========================================================================
`each` does not deal with multiple items, it always yields [a single
element][2] and so we can refrain from using `args` there.
What These Changes Do To Address the Issue
========================================================================
Switch from `*args` to `item`.
Caveats
------------------------------------------------------------------------
We are still going to pass `*yielded_args` to the `yield` because in the
next commit we will pass a second argument to that `yield` call.
Side Effects Caused By This Change
========================================================================
None expected.
------------------------------------------------------------------------
**Relevant URLs:**
* [Ticket Link][1]
* [Ruby Doc For `each`][2]
------------------------------------------------------------------------
[1]: #185
[2]: https://ruby-doc.org/2.7.6/Enumerator.html#method-i-each1 parent d4a093c commit 9e58074
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments