Module: Tantot::Strategy

Defined in:
lib/tantot/strategy.rb,
lib/tantot/strategy/chewy.rb,
lib/tantot/strategy/bypass.rb,
lib/tantot/strategy/inline.rb,
lib/tantot/strategy/sidekiq.rb

Defined Under Namespace

Classes: Bypass, Chewy, Inline, Sidekiq

Class Method Summary collapse

Class Method Details

.resolve(name) ⇒ Object



20
21
22
# File 'lib/tantot/strategy.rb', line 20

def self.resolve(name)
  "Tantot::Strategy::#{name.to_s.camelize}".safe_constantize or raise "Can't find strategy class `#{name}`"
end