Class: Gherkin::Formatter::Model::Examples
- Inherits:
-
TagStatement
- Object
- Hashable
- BasicStatement
- DescribedStatement
- TagStatement
- Gherkin::Formatter::Model::Examples
- Defined in:
- lib/gherkin/formatter/model.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#rows ⇒ Object
needs to remain mutable for filters.
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, rows) ⇒ Examples
constructor
A new instance of Examples.
- #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, rows) ⇒ Examples
Returns a new instance of Examples.
99 100 101 102 |
# File 'lib/gherkin/formatter/model.rb', line 99 def initialize(comments, , keyword, name, description, line, id, rows) super(comments, , keyword, name, description, line, id) @rows = rows end |
Instance Attribute Details
#rows ⇒ Object
needs to remain mutable for filters
97 98 99 |
# File 'lib/gherkin/formatter/model.rb', line 97 def rows @rows end |
Instance Method Details
#replay(formatter) ⇒ Object
104 105 106 |
# File 'lib/gherkin/formatter/model.rb', line 104 def replay(formatter) formatter.examples(self) end |