From: Daniel Schierbeck Date: 2006-04-20T03:41:14+09:00 Subject: Re: Symbol#to_proc is just so beautiful Berger, Daniel wrote: >> [1, 2, 3].all? &:positive? => true >> [-1, 2, 3].all? &:positive? => false > There must be a way to ditch that '&' somehow. I'd prefer this: > [1,2,3].all?(:positive?) The beauty of Symbol#to_proc is that you don't need to change any method definitions for it to work; any method that yields a single argument can take a symbol proc as a block, and it'll work out of the box. arr.any? &:positive? arr.none? &:positive? arr.each(&:upcase!) arr.collect(&:downcase) Daniel