Class: Gherkin::Formatter::Model::Row

Inherits:
Hashable
  • Object
show all
Defined in:
lib/gherkin/formatter/model.rb

Direct Known Subclasses

DataTableRow, ExamplesTableRow

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(comments, cells, line) ⇒ Row

Returns a new instance of Row.



233
234
235
# File 'lib/gherkin/formatter/model.rb', line 233

def initialize(comments, cells, line)
  @comments, @cells, @line = comments, cells, line
end

Instance Attribute Details

#cellsObject (readonly)

Returns the value of attribute cells.



231
232
233
# File 'lib/gherkin/formatter/model.rb', line 231

def cells
  @cells
end

#commentsObject (readonly)

Returns the value of attribute comments.



231
232
233
# File 'lib/gherkin/formatter/model.rb', line 231

def comments
  @comments
end

#lineObject (readonly)

Returns the value of attribute line.



231
232
233
# File 'lib/gherkin/formatter/model.rb', line 231

def line
  @line
end