Exception: Uses::Initializer::UnknownInitializerStrategy

Inherits:
Error
  • Object
show all
Defined in:
lib/uses/initializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(strategy) ⇒ UnknownInitializerStrategy

Returns a new instance of UnknownInitializerStrategy.



26
27
28
29
30
31
32
# File 'lib/uses/initializer.rb', line 26

def initialize(strategy)
  if strategy.kind_of?(Symbol)
    super("initialize: received #{strategy}, which is not supported. Should be either the symbol :config_initializers, a Proc, or simply omitted")
  else
    super("initialize: received a #{strategy.class}, which is not supported. Should be either the symbol :config_initializers, a Proc, or simply omitted")
  end
end