class CsvxExtended

Public Class Methods

new(path) click to toggle source
Calls superclass method
# File lib/simple-spreadsheet/classes/csvx_extended.rb, line 2
def initialize(path)
  super(path, csv_options: { col_sep: ";" })
end

Public Instance Methods

foreach(sheet = nil) { |row, index| ... } click to toggle source
# File lib/simple-spreadsheet/classes/csvx_extended.rb, line 6
def foreach(sheet = nil, &block)
  index = 1
  CSV.foreach(@filename, csv_options) do |row|
    yield(row, index)
    index += 1
  end
end