Sha256: a5e6998b9f3aa7c379ef64a7eb409d9757dc551ad871189a0278ee037d1331ca

Contents?: true

Size: 272 Bytes

Versions: 7

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module SimpleTextExtract
  class FileExtractor < TextExtractor
    attr_reader :filepath

    def initialize(filepath:)
      @filepath = filepath
    end

    private

      def file
        @file ||= File.new(filepath)
      end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_text_extract-0.3.0 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.2.1 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.2.0 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.1.3 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.1.2 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.1.1 lib/simple_text_extract/file_extractor.rb
simple_text_extract-0.1.0 lib/simple_text_extract/file_extractor.rb