Exception: Ranker::Strategies::Strategy::Error
- Defined in:
- lib/ranker/strategies/strategy.rb
Overview
Inner classes:
Instance Method Summary collapse
-
#initialize(errors) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(errors) ⇒ Error
Returns a new instance of Error.
117 118 119 120 121 122 123 |
# File 'lib/ranker/strategies/strategy.rb', line 117 def initialize(errors) = 'Strategy has errors: ' << errors.map { |name, error| "#{name} #{error}" }.join(', ') super() end |