Sha256: c22a1c12746fa817806a047a4d85a8ddd5540e7eb412e4be5363d74a97a1c7a4

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

module Roo
  class Excelx
    class Extractor
      def initialize(path)
        @path = path
      end

      private

      def doc
        if doc_exists?
          ::Roo::Utils.load_xml(@path).remove_namespaces!
        end
      end

      def doc_exists?
        @path && File.exist?(@path)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roo-2.5.1 lib/roo/excelx/extractor.rb
roo-2.5.0 lib/roo/excelx/extractor.rb