Skip to content

Conversation

@stac47
Copy link

@stac47 stac47 commented Jan 19, 2026

Problem: I spot two enumerator usage that can be improved.

Solution:

  • each_with_index can be replaced with each if the index is not used.
  • Hash#each can be replaced by each_value if the key is not used.

Problem: I spot two enumerator usage that can be improved.

Solution:
- `each_with_index` can be replaced with `each` if the index is not
used.
- `Hash#each` can be replaced by `each_value` if the key is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant