class ReeEnum::Value
def <=>(other)
def <=>(other) if other.is_a?(self.class) @number <=> other.number elsif other.is_a?(Symbol) @value == other elsif other.is_a?(Integer) @number == other else raise ArgumentError.new("unable to compare ReeEnum::Value with other classes") end end