Class: PDF::Storycards::Scenario
- Inherits:
-
Object
- Object
- PDF::Storycards::Scenario
- Defined in:
- lib/pdf/storycards/scenario.rb
Instance Method Summary collapse
- #add_step(step) ⇒ Object
-
#initialize(name) ⇒ Scenario
constructor
A new instance of Scenario.
Constructor Details
#initialize(name) ⇒ Scenario
Returns a new instance of Scenario.
4 5 6 7 |
# File 'lib/pdf/storycards/scenario.rb', line 4 def initialize(name) @name = name @steps = [] end |
Instance Method Details
#add_step(step) ⇒ Object
9 10 11 |
# File 'lib/pdf/storycards/scenario.rb', line 9 def add_step(step) @steps << step end |