19 Dec '13, 3pm

Implementing yield-or-enumerate semantics

Implementing yield-or-enumerate semantics Posted by avdi on December 19, 2013 — 0 comments Ruby's core collection classes have a number of methods which return an Enumerator if they are called without a block. A while back I made a quick video showing how to replicate this behavior in your own methods. It's now free to watch .

Full article: http://www.rubyflow.com/items/10253-implementing-yield-or...

Tweets