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
readonly
Returns the value of attribute comments.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Attributes included from Names
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(location, comments, keyword, name, description, raw_steps) ⇒ Background
constructor
A new instance of Background.
Methods included from DescribesItself
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.
13 14 15 16 17 18 19 20 |
# File 'lib/cucumber/core/ast/background.rb', line 13 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
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
25 26 27 |
# File 'lib/cucumber/core/ast/background.rb', line 25 def comments @comments end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
22 23 24 |
# File 'lib/cucumber/core/ast/background.rb', line 22 def description @description end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
25 26 27 |
# File 'lib/cucumber/core/ast/background.rb', line 25 def keyword @keyword end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
25 26 27 |
# File 'lib/cucumber/core/ast/background.rb', line 25 def location @location end |
Instance Method Details
#children ⇒ Object
27 28 29 |
# File 'lib/cucumber/core/ast/background.rb', line 27 def children raw_steps end |