On Sun, Aug 1, 2010 at 12:45 PM, Rick DeNatale <rick.denatale / gmail.com> wrote: >> >> def all!?(&block) >> empty? && all?(&block) >> end > > No that doesn't make sense to me all not? ¨Βοτ ατ αμμ‘ > > All not what? And right after I hit send, I realized that I'd probably expect semantics more like: #def all!? def all_not? if block_given? all? {|element| ! yield element} else all? {|element| ! element} end end -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale