module Change
Public Class Methods
tsv_sort(v)
click to toggle source
# File lib/rbbt/rest/common/table.rb, line 44 def self.tsv_sort(v) value = v.last if Array === value value.first.scan(/\d+/).first.to_f else value.scan(/\d+/).first.to_f end end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/rbbt/rest/common/table.rb, line 40 def <=>(other) self.scan(/\d+/).first.to_f <=> other.scan(/\d+/).first.to_f end