Module: Trooper::Config::Strategy

Included in:
Trooper::Configuration
Defined in:
lib/trooper/config/strategy.rb

Instance Method Summary collapse

Instance Method Details

#strategy(name, description = "No Description", &block) ⇒ Object



7
8
9
10
# File 'lib/trooper/config/strategy.rb', line 7

def strategy(name, description = "No Description", &block)
  strategy = Trooper::Strategy.new name, description, self, &block
  Trooper::Arsenal.strategies.add strategy
end