DEV Community

loading...

Discussion on: Ruby gotchas Part 1

Collapse
dkassen profile image
Daniel Kassen

I've actually never used a for loop in ruby. It is most conventional to loop over an enumerable using something like .each

Collapse
lennythedev profile image
Lenmor Ld Author

Thanks for the note! 🙏🏻
It's actually even discouraged in Rubocop style guide. 😳
I'll update the post :)