Module: SimpleXlsxReader

Defined in:
lib/simple_xlsx_reader.rb,
lib/simple_xlsx_reader/version.rb

Defined Under Namespace

Classes: CellLoadError, Document

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.configurationObject



22
23
24
25
26
# File 'lib/simple_xlsx_reader.rb', line 22

def self.configuration
  @configuration ||= Struct.new(:catch_cell_load_errors).new.tap do |c|
    c.catch_cell_load_errors = false
  end
end

.open(file_path) ⇒ Object



28
29
30
# File 'lib/simple_xlsx_reader.rb', line 28

def self.open(file_path)
  Document.new(file_path).tap(&:sheets)
end