class Reverser

Attributes

obj[RW]

Public Class Methods

new(obj) click to toggle source
# File lib/support/sort_by_attributes.rb, line 6
def initialize(obj)
  @obj = obj
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/support/sort_by_attributes.rb, line 10
def <=>(other)
  other.obj <=> self.obj
end