Hi --

On Fri, 5 Sep 2003, Jason Creighton wrote:

> On Thu, 04 Sep 2003 20:37:32 GMT
> "Mark J. Reed" <markjreed / mail.com> wrote:
>
> > 	module ObjectSpace
> > 	    class << self
> > 	        include Enumerable
> > 		def each(*args, &block) each_object(*args, &block) end
> > 	    end
> > 	end
>
> err....why don't you just alias each to each_object?
>
> module ObjectSpace
>   class << self
>     include Enumerable
>     alias :each :each_object
>   end
> end

Or even:

  class << ObjectSpace
    include Enumerable
    alias :each :each_object
  end

Or, wandering into arguably too-compressed territory:

  class << ObjectSpace.extend(Enumerable)
    alias :each :each_object
  end


David

-- 
David Alan Black
home: dblack / superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav