From: matz@... (Yukihiro Matsumoto) Date: 2001-10-10T10:11:53+09:00 Subject: [ruby-talk:22365] Re: blocks with min and max Hi, In message "[ruby-talk:22333] Re: blocks with min and max" on 01/10/10, Dave Thomas writes: |> | Comparable#compare_using { .... } |> |> I think this intrduces another hidden status, which is hard to handle, |> and easy to forget. | |If a collection has specific collation rules, then keeping it with the |collection might be more encapsulated that spreading through the code |that uses the collection. That's all I was thinking. Hmm, trade off. How about using singleton method? def ary.<=>(a,b) ... end This requires no enhancement. matz.