Method: Celerity::TableRow#child_cell

Defined in:
lib/celerity/elements/table_row.rb

#child_cell(index) ⇒ Object Also known as: []

Get the child cell at the given index



33
34
35
36
37
38
39
40
41
# File 'lib/celerity/elements/table_row.rb', line 33

def child_cell(index)
  assert_exists

  if (index - Celerity.index_offset) >= @cells.length
    raise UnknownCellException, "Unable to locate a cell at index #{index}"
  end

  TableCell.new(self, :object, @cells[index - Celerity.index_offset])
end