File: comparable.rb

# comparable.rb

Path: | lib/core/facets/comparable/comparable.rb
Last Update: | Tue Aug 10 17:25:05 -0600 2010

It would nice if we could the following. Then the middle portion of the Comparable method would not be needed. But I fear it might break others code.

      module Comparable

       def <=>(other)
         comparability.each do |field|
           cmp = send(field) <=> other.send(field); return cmp unless cmp == 0
         end
       end

     end

[Validate]