From: Daniel Schierbeck Date: 2006-04-20T05:05:23+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 This has got to be the most obfuscated way to write 2 * 3: [2, 3].inject(&:*) => 6 Daniel