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-0.15.0 | spec/support/file_streamer.rb |
grape-0.14.0 | spec/support/file_streamer.rb |
grape-0.13.0 | spec/support/file_streamer.rb |
grape-0.12.0 | spec/support/file_streamer.rb |