From: Mark Wilson Date: 2003-08-01T03:41:15+09:00 Subject: Re: Changing ==,>,<, etc On Thursday, July 31, 2003, at 02:22 PM, Nathan Weston wrote: > [snip] > And all was well. But then I hit a snag: > # 1 < any(1,2,3) > ERR: (eval):1:in `<': Disjunction can't be coerced into Fixnum > > [snip some very interesting questions I intend to think about.] What you want can be done with the any? method for arrays. [1, 2, 3].any? { |e| 1 < e } There's also an all? method. The following container (or container-like) classes have both the any? and all? methods: Array, Hash, Range, String, Set. Regards, Mark