class POI::Cells
Public Class Methods
new(row)
click to toggle source
# File lib/poi/workbook/cell.rb, line 5 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 11 def [](index) @cells[index] ||= Cell.new(@poi_row.cell(index) || @poi_row.create_cell(index), @row) end
each() { |cellwhile has_next| ... }
click to toggle source
# File lib/poi/workbook/cell.rb, line 19 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 15 def size @poi_row.physical_number_of_cells end