Class: Gherkin::Formatter::Model::Scenario
- Inherits:
-
TagStatement
- Object
- Hashable
- BasicStatement
- DescribedStatement
- TagStatement
- Gherkin::Formatter::Model::Scenario
- Defined in:
- lib/gherkin/formatter/model.rb
Instance Attribute Summary
Attributes inherited from TagStatement
Attributes inherited from DescribedStatement
Attributes inherited from BasicStatement
#comments, #keyword, #line, #name
Instance Method Summary collapse
-
#initialize(comments, tags, keyword, name, description, line, id) ⇒ Scenario
constructor
A new instance of Scenario.
- #replay(formatter) ⇒ Object
Methods inherited from TagStatement
Methods inherited from BasicStatement
#first_non_comment_line, #line_range
Methods inherited from Hashable
Constructor Details
#initialize(comments, tags, keyword, name, description, line, id) ⇒ Scenario
Returns a new instance of Scenario.
71 72 73 74 |
# File 'lib/gherkin/formatter/model.rb', line 71 def initialize(comments, , keyword, name, description, line, id) super(comments, , keyword, name, description, line, id) @type = "scenario" end |
Instance Method Details
#replay(formatter) ⇒ Object
76 77 78 |
# File 'lib/gherkin/formatter/model.rb', line 76 def replay(formatter) formatter.scenario(self) end |