class Roo::Excelx::Extractor
Constants
- COMMON_STRINGS
Public Class Methods
new(path, options = {})
click to toggle source
# File lib/roo/excelx/extractor.rb, line 19 def initialize(path, options = {}) @path = path @options = options end
Private Instance Methods
doc()
click to toggle source
# File lib/roo/excelx/extractor.rb, line 26 def doc instance_cache(:@doc) do raise FileNotFound, "#{@path} file not found" unless doc_exists? ::Roo::Utils.load_xml(@path).remove_namespaces! end end
doc_exists?()
click to toggle source
# File lib/roo/excelx/extractor.rb, line 34 def doc_exists? @path && File.exist?(@path) end