Class: Plantae::Scenario
- Inherits:
-
Object
- Object
- Plantae::Scenario
- Defined in:
- lib/plantae/scenario.rb
Overview
Represents a scenario
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Scenario
constructor
A new instance of Scenario.
Constructor Details
#initialize(name, &block) ⇒ Scenario
Returns a new instance of Scenario.
10 11 12 13 |
# File 'lib/plantae/scenario.rb', line 10 def initialize(name, &block) @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/plantae/scenario.rb', line 6 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/plantae/scenario.rb', line 6 def name @name end |