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