Sha256: 31f6f27ccef7b6e8afa6df13741f7a9029e845f3772d486c77b173ddbe630a0a
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
class XlsxWriter class Row attr_reader :sheet attr_reader :cells attr_reader :y def initialize(sheet, raw_cells, y) @sheet = sheet @y = y @cells = [] raw_cells.each_with_index do |cell, x| @cells << Cell.new(self, cell, x, y) end end def to_xml ary = [] ary << %{<row r="#{y}">} cells.each do |cell| ary << cell.to_xml end ary << %{</row>} ary.join end end end
Version data entries
5 entries across 5 versions & 1 rubygems