class POI::Cells

Public Class Methods

new(row) click to toggle source
# File lib/poi/workbook/cell.rb, line 6
def initialize(row)
  @row     = row
  @poi_row = row.poi_row
  @cells   = {}
end

Public Instance Methods

[](index) click to toggle source
# File lib/poi/workbook/cell.rb, line 12
def [](index)
  @cells[index] ||= Cell.new(@poi_row.get_cell(index) || @poi_row.create_cell(index), @row)
end
each() { |cellwhile has_next| ... } click to toggle source
# File lib/poi/workbook/cell.rb, line 20
def each
  it = @poi_row.cell_iterator
  yield Cell.new(it.next, @row) while it.has_next
end
size() click to toggle source
# File lib/poi/workbook/cell.rb, line 16
def size
  @poi_row.physical_number_of_cells
end