Class: Gherkin::Formatter::Model::Background
- Inherits:
-
DescribedStatement
- Object
- Hashable
- BasicStatement
- DescribedStatement
- Gherkin::Formatter::Model::Background
- Defined in:
- lib/gherkin/formatter/model.rb
Instance Attribute Summary
Attributes inherited from DescribedStatement
Attributes inherited from BasicStatement
#comments, #keyword, #line, #name
Instance Method Summary collapse
-
#initialize(comments, keyword, name, description, line) ⇒ Background
constructor
A new instance of Background.
- #replay(formatter) ⇒ Object
Methods inherited from BasicStatement
#first_non_comment_line, #line_range
Methods inherited from Hashable
Constructor Details
#initialize(comments, keyword, name, description, line) ⇒ Background
Returns a new instance of Background.
61 62 63 64 |
# File 'lib/gherkin/formatter/model.rb', line 61 def initialize(comments, keyword, name, description, line) super(comments, keyword, name, description, line) @type = "background" end |
Instance Method Details
#replay(formatter) ⇒ Object
66 67 68 |
# File 'lib/gherkin/formatter/model.rb', line 66 def replay(formatter) formatter.background(self) end |