Sha256: c491be8fa5c42860a5059484494efe03d9ac5a59003e9ae77aa473dabdbcc081

Contents?: true

Size: 184 Bytes

Versions: 24

Compression:

Stored size: 184 Bytes

Contents

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

24 entries across 24 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/support/file_streamer.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/support/file_streamer.rb
grape-1.2.5 spec/support/file_streamer.rb
grape-1.2.4 spec/support/file_streamer.rb
grape-1.2.3 spec/support/file_streamer.rb
grape-1.2.2 spec/support/file_streamer.rb
grape-1.2.1 spec/support/file_streamer.rb
grape-1.2.0 spec/support/file_streamer.rb
grape-1.1.0 spec/support/file_streamer.rb
grape-1.0.3 spec/support/file_streamer.rb
grape-1.0.2 spec/support/file_streamer.rb
grape-1.0.1 spec/support/file_streamer.rb
grape-1.0.0 spec/support/file_streamer.rb
grape-0.19.2 spec/support/file_streamer.rb
grape-0.19.1 spec/support/file_streamer.rb
grape-0.19.0 spec/support/file_streamer.rb
grape-0.18.0 spec/support/file_streamer.rb
grape-0.17.0 spec/support/file_streamer.rb
grape-0.16.2 spec/support/file_streamer.rb
grape-0.16.1 spec/support/file_streamer.rb