What is the sanest way to
> backport the following example so that it works more-or-less in the same
> way under Ruby 1.8.7 as it does under Ruby 1.9?
> 
> 
> def multiplier param
>   Enumerator.new do |yielder|

This might help:

http://talklikeaduck.denhaven2.com/2006/10/15/enumeration-improvement-in-ruby-1-9
http://stackoverflow.com/questions/1436037/how-do-enumerators-work-in-ruby-1-9-1/1481303#1481303
http://anthonylewis.com/2007/11/09/ruby-generators

GL.
-r
-- 
Posted via http://www.ruby-forum.com/.