DEV Community

Discussion on: More Ruby from a Python Dev

Collapse
 
yechielk profile image
Yechiel Kalmenson

It still works with the to_i, it's just unnecessary.

All it does is convert an integer to an integer, no harm done 🙃

Thread Thread
 
vickilanger profile image
Vicki Langer

Fixed it up anyway. It goes to show my point of how succinct Ruby is in this case.

And my posts contain no copying and pasting from samples. I’d never learn anything that way. For this, I always make up my own stuff and use that.