From: John W Higgins Date: 2010-07-30T08:39:57+09:00 Subject: Re: [].all?{} and [].any?{} Behavior --000e0cd7053263c8cf048c8f40d9 Content-Type: text/plain; charset=ISO-8859-1 Afternoon, On Thu, Jul 29, 2010 at 2:27 PM, John Sikora wrote: > I assume that others have run across this but some quick searches did > not turn up anything. I am wondering how others deal with this such as > over-riding as I do, checking for [] each time (which does not seem very > Ruby-like), or even leaving the operation as is because for some, it may > be the desired behavior. > I might suggest your better course would be to create a new method rather than override the existing method. Maybe something like js_any? or js_all? would be better in that it shows both what it's doing and that it's not the standard method at the same time. Then you have no issues with any other code that depends on the standard methodology in terms of the methods. I appreciate the aesthetics are a little lacking but sometimes that a small price to pay. John --000e0cd7053263c8cf048c8f40d9--