Class: Spinach::Feature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFeature

Returns a new instance of Feature.



7
8
9
10
# File 'lib/spinach/feature.rb', line 7

def initialize
  @scenarios = []
  @tags = []
end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



5
6
7
# File 'lib/spinach/feature.rb', line 5

def background
  @background
end

#lineObject

Returns the value of attribute line.



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

def line
  @line
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#scenariosObject

Returns the value of attribute scenarios.



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

def scenarios
  @scenarios
end

#tagsObject

Returns the value of attribute tags.



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

def tags
  @tags
end

Instance Method Details

#background_stepsObject



12
13
14
# File 'lib/spinach/feature.rb', line 12

def background_steps
  @background.nil? ? [] : @background.steps
end