From: Rick DeNatale Date: 2010-08-02T01:49:42+09:00 Subject: Re: .any?{} Behavior On Sun, Aug 1, 2010 at 12:45 PM, Rick DeNatale wrote: >> >> def all!?(&block) >>  !empty? && all?(&block) >> end > > No that doesn't make sense to me all not?  Not at all! > > 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