Class: Gherkin::Formatter::Model::Examples

Inherits:
TagStatement show all
Defined in:
lib/gherkin/formatter/model.rb

Instance Attribute Summary collapse

Attributes inherited from TagStatement

#tags

Attributes inherited from DescribedStatement

#description

Attributes inherited from BasicStatement

#comments, #keyword, #line, #name

Instance Method Summary collapse

Methods inherited from TagStatement

#first_non_comment_line

Methods inherited from BasicStatement

#first_non_comment_line, #line_range

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(comments, tags, keyword, name, description, line, rows = nil) ⇒ Examples

Returns a new instance of Examples.



117
118
119
120
# File 'lib/gherkin/formatter/model.rb', line 117

def initialize(comments, tags, keyword, name, description, line, rows=nil)
  super(comments, tags, keyword, name, description, line)
  @rows = rows
end

Instance Attribute Details

#rowsObject

Returns the value of attribute rows.



115
116
117
# File 'lib/gherkin/formatter/model.rb', line 115

def rows
  @rows
end

Instance Method Details

#replay(formatter) ⇒ Object



122
123
124
# File 'lib/gherkin/formatter/model.rb', line 122

def replay(formatter)
  formatter.examples(self)
end