class Cucumber::Core::Ast::DataTable::Cells
:nodoc:
Represents a row of cells or columns of cells
def [](n)
def [](n) @cells[n] end
def each(&proc)
def each(&proc) @cells.each(&proc) end
def initialize(table, cells)
def initialize(table, cells) @table, @cells = table, cells end
def line
def line @cells[0].line end
def to_hash #:nodoc:
def to_hash #:nodoc: @to_hash ||= @table.to_hash(self) end
def to_sexp #:nodoc:
For testing only
def to_sexp #:nodoc: [:row, line, *@cells.map{|cell| cell.to_sexp}] end
def value(n) #:nodoc:
def value(n) #:nodoc: self[n].value end
def width
def width map{|cell| cell.value ? escape_cell(cell.value.to_s).unpack('U*').length : 0}.max end