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