Class: Reponaut::Application::LexicographicalSorter

Inherits:
Sorter
  • Object
show all
Defined in:
lib/reponaut/sorter.rb

Instance Attribute Summary

Attributes inherited from Sorter

#count, #name

Instance Method Summary collapse

Methods inherited from Sorter

#initialize

Constructor Details

This class inherits a constructor from Reponaut::Application::Sorter

Instance Method Details

#<=>(o) ⇒ Object



12
13
14
15
# File 'lib/reponaut/sorter.rb', line 12

def <=>(o)
  return nil unless o.kind_of? self.class
  name <=> o.name
end