1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
module Roo class Excelx class Extractor def initialize(path) @path = path end private def doc raise FileNotFound, "#{@path} file not found" unless doc_exists? ::Roo::Utils.load_xml(@path).remove_namespaces! end def doc_exists? @path && File.exist?(@path) end end end end