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.



269
270
271
# File 'lib/cucumber/ast/table.rb', line 269

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.



267
268
269
# File 'lib/cucumber/ast/table.rb', line 267

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value.



267
268
269
# File 'lib/cucumber/ast/table.rb', line 267

def value
  @value
end

Instance Method Details

#accept(visitor, status) ⇒ Object



273
274
275
# File 'lib/cucumber/ast/table.rb', line 273

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

#to_sexpObject

For testing only



278
279
280
# File 'lib/cucumber/ast/table.rb', line 278

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