From: ts Date: 2002-11-27T22:21:46+09:00 Subject: Re: each_with_index & collect_with_index? >>>>> "M" == Martin DeMello writes: M> module Enumerable I don't think that you can put it in a module, or a class. M> Another random thought: can you get at the names of the block local M> variables? Might be possible to hack something up along the lines of a M> hash of symbols, if so. #local_variables give you the name of all local variables (with block local) but you'll have a problem (like your current implementation) when I'll introduce threads :-)) Guy Decoux