Sha256: c5b686e21854eca6a8b3146c4645e61c3fc80e38616bf04451fe5f850088ec3b

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

module Roo
  class Excelx
    class 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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roo-2.4.0 lib/roo/excelx/extractor.rb
roo-2.3.2 lib/roo/excelx/extractor.rb
roo-2.3.1 lib/roo/excelx/extractor.rb
roo-2.3.0 lib/roo/excelx/extractor.rb
roo-2.2.0 lib/roo/excelx/extractor.rb
roo-2.1.1 lib/roo/excelx/extractor.rb
roo-2.1.0 lib/roo/excelx/extractor.rb
roo-2.0.1 lib/roo/excelx/extractor.rb