Exploring Enumerators in Ruby

Hi folks, I wrote up an interesting and useful pattern in Ruby that I don’t think gets enough love. I’m interested in hearing your feedback and answering any questions you might have. Thanks in advance!

Exploring Enumerators in Ruby

2 Likes

Enumerators are great! I like the content of your post but the Python style indentation is a bit much. Surprisingly it makes groking the code a little foreign. Standard Ruby indentation is two spaces (see the Ruby Style Guide for more info).

1 Like

Agreed! The markdown editor in WordPress was not playing well with spaces
so I had to use tabs for this write-up. I am exploring alternatives for
future posts, and have been thinking about migrating the site to Jekyll or
something similar. Anyway, thanks for the feedback!

1 Like

Thanks, this is the first time I see a simple example with enumerators :slight_smile: Great post

1 Like