Class: Cucumber::Core::Ast::Background

Inherits:
Object
  • Object
show all
Includes:
DescribesItself, HasLocation, Names
Defined in:
lib/cucumber/core/ast/background.rb

Instance Attribute Summary collapse

Attributes included from Names

#description, #title

Instance Method Summary collapse

Methods included from DescribesItself

#describe_to

Methods included from HasLocation

#attributes, #file, #file_colon_line, #line, #match_locations?, #multiline_arg, #tags

Methods included from Names

#name, #to_s

Instance Attribute Details

#commentsObject

Returns the value of attribute comments.



17
18
19
# File 'lib/cucumber/core/ast/background.rb', line 17

def comments
  @comments
end

#featureObject

Returns the value of attribute feature.



16
17
18
# File 'lib/cucumber/core/ast/background.rb', line 16

def feature
  @feature
end

#gherkin_statementObject (readonly)

Returns the value of attribute gherkin_statement.



18
19
20
# File 'lib/cucumber/core/ast/background.rb', line 18

def gherkin_statement
  @gherkin_statement
end

#keywordObject

Returns the value of attribute keyword.



17
18
19
# File 'lib/cucumber/core/ast/background.rb', line 17

def keyword
  @keyword
end

#locationObject

Returns the value of attribute location.



17
18
19
# File 'lib/cucumber/core/ast/background.rb', line 17

def location
  @location
end

Instance Method Details

#childrenObject



20
21
22
# File 'lib/cucumber/core/ast/background.rb', line 20

def children
  raw_steps
end