Method: NumericValue#<=>
- Defined in:
- lib/rbbt/rest/common/table.rb
#<=>(other) ⇒ Object
124 125 126 127 128 129 130 131 132 |
# File 'lib/rbbt/rest/common/table.rb', line 124 def <=>(other) if Float === self super(other.to_f) else v1 = self.to_f v2 = other.to_f v1 <=> v2 end end |