Exception: Ranker::Strategies::Strategy::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/ranker/strategies/strategy.rb

Overview

Inner classes:

Instance Method Summary collapse

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)
  message = 'Strategy has errors: '
  message << errors.map { |name, error|
    "#{name} #{error}"
  }.join(', ')
  super(message)
end