Method: Strategy::Plan#describe
- Defined in:
- lib/strategy/plan.rb
#describe ⇒ Object
Describe the plan itself and all steps involved. This method puts together a textual representation of the execution plan which can be displayed to a user before executing anything for confirmation.
53 54 55 56 57 58 59 60 |
# File 'lib/strategy/plan.rb', line 53 def describe description = [@description] n = 0 @steps.each do |step| description << " #{n+=1}. #{step.description}" end description.join "\n" end |