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