Class: Gherkin::Formatter::Model::Examples
- Inherits:
-
TagStatement
- Object
- Hashable
- BasicStatement
- DescribedStatement
- TagStatement
- Gherkin::Formatter::Model::Examples
- Defined in:
- lib/gherkin/formatter/model.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
Returns the value of attribute rows.
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, rows = nil) ⇒ 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, rows = nil) ⇒ Examples
Returns a new instance of Examples.
102 103 104 105 |
# File 'lib/gherkin/formatter/model.rb', line 102 def initialize(comments, , keyword, name, description, line, rows=nil) super(comments, , keyword, name, description, line) @rows = rows end |
Instance Attribute Details
#rows ⇒ Object
Returns the value of attribute rows.
100 101 102 |
# File 'lib/gherkin/formatter/model.rb', line 100 def rows @rows end |
Instance Method Details
#replay(formatter) ⇒ Object
107 108 109 |
# File 'lib/gherkin/formatter/model.rb', line 107 def replay(formatter) formatter.examples(self) end |