Class: Spinach::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/spinach/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature) ⇒ Scenario

Returns 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

#featureObject

Returns the value of attribute feature.



4
5
6
# File 'lib/spinach/scenario.rb', line 4

def feature
  @feature
end

#lineObject

Returns the value of attribute line.



3
4
5
# File 'lib/spinach/scenario.rb', line 3

def line
  @line
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/spinach/scenario.rb', line 4

def name
  @name
end

#stepsObject

Returns the value of attribute steps.



4
5
6
# File 'lib/spinach/scenario.rb', line 4

def steps
  @steps
end

#tagsObject

Returns the value of attribute tags.



4
5
6
# File 'lib/spinach/scenario.rb', line 4

def tags
  @tags
end