Sha256: 04855a8896200c6e41eb9903ed9dbfb14f6a6a984b311c17c823f6586c40c397

Contents?: true

Size: 607 Bytes

Versions: 14

Compression:

Stored size: 607 Bytes

Contents

module Cells

  def self.rubyxl_to_hash(rubyxl_rows)
    hash_cells = {}
    rubyxl_rows.each do |rubyxl_row_hash|
      rubyxl_row = rubyxl_row_hash[:rubyxl_row]
      rubyxl_row_index = rubyxl_row_hash[:rubyxl_row_index]
      rubyxl_row_cells = rubyxl_row&.cells
      unless rubyxl_row_cells.nil?
        rubyxl_row_cells.each_with_index do |rubyxl_cell, rubyxl_column_index|
          hash_cell_key = RubyXL::Reference.ind2ref(rubyxl_row_index, rubyxl_column_index)
          hash_cells[hash_cell_key] = Cell.rubyxl_cell_to_hash_cell(rubyxl_cell)
        end
      end
    end
    hash_cells
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rxl-0.6.1 lib/cells.rb
rxl-0.6.0 lib/cells.rb
rxl-0.5.1 lib/cells.rb
rxl-0.5.0 lib/cells.rb
rxl-0.4.1 lib/cells.rb
rxl-0.4.0 lib/cells.rb
rxl-0.3.0 lib/cells.rb
rxl-0.2.1 lib/cells.rb
rxl-0.2.0 lib/cells.rb
rxl-0.1.4 lib/cells.rb
rxl-0.1.3 lib/cells.rb
rxl-0.1.2 lib/cells.rb
rxl-0.1.1 lib/cells.rb
rxl-0.1.0 lib/cells.rb