Class: Cucumber::Core::Ast::Background
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::Background
- Includes:
- DescribesItself, HasLocation, Names
- Defined in:
- lib/cucumber/core/ast/background.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#gherkin_statement ⇒ Object
readonly
Returns the value of attribute gherkin_statement.
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(gherkin_statement, language, location, comments, keyword, title, description, raw_steps) ⇒ Background
constructor
A new instance of Background.
Methods included from DescribesItself
Methods included from HasLocation
#attributes, #file, #file_colon_line, #line, #match_locations?, #multiline_arg, #tags
Methods included from Names
#inspect, #legacy_conflated_name_and_description, #name, #to_s
Constructor Details
#initialize(gherkin_statement, language, location, comments, keyword, title, description, raw_steps) ⇒ Background
Returns a new instance of Background.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cucumber/core/ast/background.rb', line 13 def initialize(gherkin_statement, language, location, comments, keyword, title, description, raw_steps) @gherkin_statement = gherkin_statement @language = language @location = location @comments = comments @keyword = keyword @title = title @description = description @raw_steps = raw_steps end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments.
28 29 30 |
# File 'lib/cucumber/core/ast/background.rb', line 28 def comments @comments end |
#feature ⇒ Object
Returns the value of attribute feature.
27 28 29 |
# File 'lib/cucumber/core/ast/background.rb', line 27 def feature @feature end |
#gherkin_statement ⇒ Object (readonly)
Returns the value of attribute gherkin_statement.
29 30 31 |
# File 'lib/cucumber/core/ast/background.rb', line 29 def gherkin_statement @gherkin_statement end |
#keyword ⇒ Object
Returns the value of attribute keyword.
28 29 30 |
# File 'lib/cucumber/core/ast/background.rb', line 28 def keyword @keyword end |
#location ⇒ Object
Returns the value of attribute location.
28 29 30 |
# File 'lib/cucumber/core/ast/background.rb', line 28 def location @location end |
Instance Method Details
#children ⇒ Object
31 32 33 |
# File 'lib/cucumber/core/ast/background.rb', line 31 def children raw_steps end |