Report abuse

1
2
3
4
5
6
7
8
9
10
11
def <=>(other)
  self.to_s <=> other.to_s
end

def ==(other)
  self.to_s == other.to_s
end

def eql?(other)
  self.class == other.class && self == other
end