Class: WeightedListRank::Strategy
- Inherits:
-
Object
- Object
- WeightedListRank::Strategy
- Defined in:
- lib/weighted_list_rank/strategy.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#calculate_score(list, item) ⇒ Numeric
Calculates the score for an item within a list.
Instance Method Details
#calculate_score(list, item) ⇒ Numeric
Calculates the score for an item within a list. Must be implemented by subclass.
7 8 9 |
# File 'lib/weighted_list_rank/strategy.rb', line 7 def calculate_score(list, item) raise NotImplementedError end |