ruby/ruby — pull request #59 by aef (2011-11-17 09:52:31+00:00)
Title: Added <, >, <= and >= operators to Set

They simply serve as alternatives to the superset? and subset? method family.

Neither the Comparable mixin nor <=> is implemented by intention, because a comparison with a completely disjunct other set would result in an undefined result, which then would cause exceptions when sorting an array of sets for example.

I've also written a patch for rubyspec which tests the new methods and runs at least in MRI 1.8.7, 1.9.2 and 1.9.3. It is available here: https://github.com/aef/rubyspec