From: Daniel Schierbeck Date: 2006-04-20T04:57:39+09:00 Subject: Re: Symbol#to_proc is just so beautiful Florian Gro� wrote: > If you use this definition instead: > > class Symbol > def to_proc() > lambda { |obj, *args| obj.send(self, *args) } > end > end > > You can also do this: > > (1 .. 5).inject(&:+) # => 15 > (1 .. 5).inject(&:*) # => 120 Sweeeeet! Oh man, I love this language!