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

#name

Instance Method Summary collapse

Methods included from DescribesItself

#describe_to

Methods included from HasLocation

#all_locations, #attributes, #file, #file_colon_line, #line, #multiline_arg, #tags

Methods included from Names

#inspect, #legacy_conflated_name_and_description, #to_s

Constructor Details

#initialize(location, comments, keyword, name, description, raw_steps) ⇒ Background

Returns a new instance of Background.



14
15
16
17
18
19
20
21
# File 'lib/cucumber/core/ast/background.rb', line 14

def initialize(location, comments, keyword, name, description, raw_steps)
  @location = location
  @comments = comments
  @keyword = keyword
  @name = name
  @description = description
  @raw_steps = raw_steps
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



26
27
28
# File 'lib/cucumber/core/ast/background.rb', line 26

def comments
  @comments
end

#descriptionObject (readonly)

Returns the value of attribute description.



23
24
25
# File 'lib/cucumber/core/ast/background.rb', line 23

def description
  @description
end

#keywordObject (readonly)

Returns the value of attribute keyword.



26
27
28
# File 'lib/cucumber/core/ast/background.rb', line 26

def keyword
  @keyword
end

#locationObject (readonly)

Returns the value of attribute location.



26
27
28
# File 'lib/cucumber/core/ast/background.rb', line 26

def location
  @location
end

Instance Method Details

#childrenObject



28
29
30
# File 'lib/cucumber/core/ast/background.rb', line 28

def children
  raw_steps
end