Sha256: ff35baa18f2e8376ab0c27b9e313617f0fbce899b2079ad906517cf500615301

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

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

    private

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

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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
culturecode-roo-2.0.2 lib/roo/excelx/extractor.rb
culturecode-roo-2.0.1 lib/roo/excelx/extractor.rb
roo-2.0.0 lib/roo/excelx/extractor.rb
roo-2.0.0beta1 lib/roo/excelx/extractor.rb
roo-andyw8-2.0.0 lib/roo/excelx/extractor.rb