Class: Rankle::Ranker

Inherits:
Object
  • Object
show all
Defined in:
lib/rankle/ranker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strategy) ⇒ Ranker

Returns a new instance of Ranker.



5
6
7
# File 'lib/rankle/ranker.rb', line 5

def initialize strategy
  @strategy = strategy
end

Instance Attribute Details

#strategyObject

Returns the value of attribute strategy.



3
4
5
# File 'lib/rankle/ranker.rb', line 3

def strategy
  @strategy
end