Class: Cucumber::Ast::Table::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/ast/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, table, row, col, line) ⇒ Cell

Returns a new instance of Cell.



193
194
195
# File 'lib/cucumber/ast/table.rb', line 193

def initialize(value, table, row, col, line)
  @value, @table, @row, @col, @line = value, table, row, col, line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



191
192
193
# File 'lib/cucumber/ast/table.rb', line 191

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value.



191
192
193
# File 'lib/cucumber/ast/table.rb', line 191

def value
  @value
end

Instance Method Details

#accept(visitor, status) ⇒ Object



197
198
199
# File 'lib/cucumber/ast/table.rb', line 197

def accept(visitor, status)
  visitor.visit_table_cell_value(@value, col_width, status)
end

#to_sexpObject

For testing only



202
203
204
# File 'lib/cucumber/ast/table.rb', line 202

def to_sexp #:nodoc:
  [:cell, @value]
end