Class: Spinach::Scenario
- Inherits:
-
Object
- Object
- Spinach::Scenario
- Defined in:
- lib/spinach/scenario.rb
Instance Attribute Summary (collapse)
-
- (Object) feature
Returns the value of attribute feature.
-
- (Object) line
Returns the value of attribute line.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) steps
Returns the value of attribute steps.
-
- (Object) tags
Returns the value of attribute tags.
Instance Method Summary (collapse)
-
- (Scenario) initialize(feature)
constructor
A new instance of Scenario.
Constructor Details
- (Scenario) initialize(feature)
A new instance of Scenario
6 7 8 9 10 |
# File 'lib/spinach/scenario.rb', line 6 def initialize(feature) @feature = feature @steps = [] @tags = [] end |
Instance Attribute Details
- (Object) feature
Returns the value of attribute feature
4 5 6 |
# File 'lib/spinach/scenario.rb', line 4 def feature @feature end |
- (Object) line
Returns the value of attribute line
3 4 5 |
# File 'lib/spinach/scenario.rb', line 3 def line @line end |
- (Object) name
Returns the value of attribute name
4 5 6 |
# File 'lib/spinach/scenario.rb', line 4 def name @name end |
- (Object) steps
Returns the value of attribute steps
4 5 6 |
# File 'lib/spinach/scenario.rb', line 4 def steps @steps end |
- (Object) tags
Returns the value of attribute tags
4 5 6 |
# File 'lib/spinach/scenario.rb', line 4 def @tags end |