From: "Peña, Botp" Date: 2006-11-15T10:19:29+09:00 Subject: Re: returning keyword :From => "Louis J Scoras [mailto:louis.j.scoras@gmail.com]" # module Enumerable # def injecting(s) # inject(s) do |k, i| # yield(k, i); k # end # end # end # # Say you want to count letters-- # # some_text.inject(Hash.new(0)) {|h,l| h[l] +=1; h} # # vs # # some_text.injecting(Hash.new(0) {|h,l| h[l] += 1} clever indeed. +1 on my-bag-of-tricks. thanks for the tip. kind regards -botp