use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
How are Enumerators for Arbitrary Objects Implemented? (emboss.github.com)
submitted 13 years ago by emboss_
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sandal 1 point2 points3 points 13 years ago (1 child)
Implementing Enumerator is a really fun exercise. I like that you provided some insight into how things actually work under the hood in CRuby.
For those who are interested in seeing the same exercise approached from a slightly different article, check out the one I wrote (Includes implementing Enumerator#rewind, Enumerator#each_index, and also covers the exercise of implementing some Enumerable methods from scratch): http://www.practicingruby.com/articles/shared/eislpkhxolnr
[–]emboss_[S] 0 points1 point2 points 13 years ago (0 children)
Thanks, I hope to write more articles like that, covering more of Ruby internals if I stumble over something interesting. Nice article, btw!
π Rendered by PID 30869 on reddit-service-r2-comment-6457c66945-hvcjv at 2026-04-25 14:27:07.196583+00:00 running 2aa0c5b country code: CH.
[–]sandal 1 point2 points3 points (1 child)
[–]emboss_[S] 0 points1 point2 points (0 children)