class CsvtExtended
Public Class Methods
new(path)
click to toggle source
Calls superclass method
# File lib/simple-spreadsheet/classes/csvt_extended.rb, line 2 def initialize(path) super(path, csv_options: { col_sep: "\t" }) end
Public Instance Methods
foreach(sheet = nil) { |row, index| ... }
click to toggle source
# File lib/simple-spreadsheet/classes/csvt_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