Sha256: e5f9c1930d07a1bf269c3fe476be5b3a7bbd41c37800a80ad100ca461d2b206c

Contents?: true

Size: 215 Bytes

Versions: 16

Compression:

Stored size: 215 Bytes

Contents

# frozen_string_literal: true

class FileStreamer
  def initialize(file_path)
    @file_path = file_path
  end

  def each(&blk)
    File.open(@file_path, 'rb') do |file|
      file.each(10, &blk)
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
grape-1.8.0 spec/support/file_streamer.rb
grape-1.7.1 spec/support/file_streamer.rb
grape-1.7.0 spec/support/file_streamer.rb
grape-1.6.2 spec/support/file_streamer.rb
grape-1.6.1 spec/support/file_streamer.rb
grape-1.6.0 spec/support/file_streamer.rb
grape-1.5.3 spec/support/file_streamer.rb
grape-1.5.2 spec/support/file_streamer.rb
grape-1.5.1 spec/support/file_streamer.rb
grape-1.5.0 spec/support/file_streamer.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/spec/support/file_streamer.rb
grape-1.4.0 spec/support/file_streamer.rb
grape-1.3.3 spec/support/file_streamer.rb
grape-1.3.2 spec/support/file_streamer.rb
grape-1.3.1 spec/support/file_streamer.rb
grape-1.3.0 spec/support/file_streamer.rb