lib/celerity/elements/table_row.rb in jarib-celerity-0.0.6.7 vs lib/celerity/elements/table_row.rb in jarib-celerity-0.0.6.8
- old
+ new
@@ -12,20 +12,20 @@
end
#
# Yields each TableCell in this row to the given block.
#
-
+
def each
assert_exists
@cells.each { |cell| yield TableCell.new(self, :object, cell) }
end
#
# Get the child cell at the given index
#
-
+
def child_cell(index)
assert_exists
if (index - INDEX_OFFSET) >= @cells.length
raise UnknownCellException, "Unable to locate a cell at index #{index}"
@@ -36,10 +36,10 @@
alias_method :[], :child_cell
#
# Number of cells in this row.
#
-
+
def column_count
assert_exists
@cells.length
end
\ No newline at end of file