Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/unit/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



5
6
7
# File 'lib/unit/compatibility.rb', line 5

def <=>(other)
  self.to_i <=> other.to_i
end