Class: CsvxReader

Inherits:
SpreadsheetReader show all
Includes:
RooModule
Defined in:
lib/simple-spreadsheet/readers/csvx_reader.rb

Instance Method Summary collapse

Methods included from RooModule

#cell, #celltype, #first_column, #first_row, #last_column, #last_row, #selected_sheet=, #sheets

Methods inherited from SpreadsheetReader

#cell, #celltype, #first_column, #first_row, #last_column, #last_row, #parse, #selected_sheet=, #sheets

Methods inherited from GenericSheet

#path

Constructor Details

#initialize(file) ⇒ CsvxReader


3
4
5
6
# File 'lib/simple-spreadsheet/readers/csvx_reader.rb', line 3

def initialize(file)
  super
  @engine = CsvxExtended.new(@path) # Roo
end

Instance Method Details

#foreach(sheet, &block) ⇒ Object


8
9
10
# File 'lib/simple-spreadsheet/readers/csvx_reader.rb', line 8

def foreach(sheet, &block)
  @engine.foreach(sheet, &block)
end