From: matz@... (Yukihiro Matsumoto) Date: 2001-10-10T12:47:32+09:00 Subject: [ruby-talk:22371] Re: blocks with min and max Hi, In message "[ruby-talk:22367] Re: blocks with min and max" on 01/10/10, Dave Thomas writes: |I went down that route too, but isn't the comparison between the |_elements_, not the collection? So ary.max would need <=> defined for |each element in ary, which _seriously_ breaks encapsulation :) You're right. Hmm. |I still like the idea of being able to specify the comparison method |as part of Enumerable or Comparable's interface. Enumerable, if it should. matz.