Class: Reponaut::Application::NumericalSorter
- Defined in:
- lib/reponaut/sorter.rb
Instance Attribute Summary
Attributes inherited from Sorter
Instance Method Summary collapse
Methods inherited from Sorter
Constructor Details
This class inherits a constructor from Reponaut::Application::Sorter
Instance Method Details
#<=>(o) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/reponaut/sorter.rb', line 19 def <=>(o) return nil unless o.kind_of? self.class if count == o.count name <=> o.name else o.count <=> count end end |