Module: Strategy
- Defined in:
- lib/strategy.rb,
lib/strategy/plan.rb,
lib/strategy/step.rb
Defined Under Namespace
Class Method Summary collapse
-
.plan(desc) ⇒ Object
Convenience function to get a new Plan quickly.
-
.step(desc) ⇒ Object
Convenience function to get a new Step quickly.
Class Method Details
.plan(desc) ⇒ Object
Convenience function to get a new Plan quickly
Parameters:
- desc
-
The description of the new plan
Returns:
A Strategy::Plan with the specified description
27 28 29 |
# File 'lib/strategy.rb', line 27 def self.plan desc Strategy::Plan.new desc end |
.step(desc) ⇒ Object
Convenience function to get a new Step quickly
Parameters:
- desc
-
The description of the new step
Returns:
A Strategy::Step with the specified description
14 15 16 |
# File 'lib/strategy.rb', line 14 def self.step desc Strategy::Step.new desc end |