Class: Reponaut::Application::Sorter

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

Direct Known Subclasses

LexicographicalSorter, NumericalSorter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pair) ⇒ Sorter

Returns a new instance of Sorter.



6
7
8
# File 'lib/reponaut/sorter.rb', line 6

def initialize(pair)
  @name, @count = pair
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



4
5
6
# File 'lib/reponaut/sorter.rb', line 4

def count
  @count
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/reponaut/sorter.rb', line 4

def name
  @name
end