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.
58 59 60 61 |
# File 'lib/gherkin/formatter/model.rb', line 58 def initialize(comments, keyword, name, description, line) super(comments, keyword, name, description, line) @type = "background" end |
Instance Method Details
#replay(formatter) ⇒ Object
63 64 65 |
# File 'lib/gherkin/formatter/model.rb', line 63 def replay(formatter) formatter.background(self) end |