Module: Location
- Extended by:
- Entity
- Defined in:
- lib/rbbt/rest/common/table.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.tsv_sort(v) ⇒ Object
66 67 68 69 70 71 72 73 |
# File 'lib/rbbt/rest/common/table.rb', line 66 def self.tsv_sort(v) value = v.last if Array === value value.first.to_s.split(":").first.to_f else value.to_s.split(":").first.to_f end end |
Instance Method Details
#<=>(other) ⇒ Object
62 63 64 |
# File 'lib/rbbt/rest/common/table.rb', line 62 def <=>(other) self.to_s.split(":").first.to_f <=> other.to_s.split(":").first.to_f end |