Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/flatiron-video-uploader/runner.rb

Instance Method Summary collapse

Instance Method Details

#each_part(current_part = 1, part_size = PART_SIZE) ⇒ Object



3
4
5
6
7
8
# File 'lib/flatiron-video-uploader/runner.rb', line 3

def each_part(current_part=1,part_size=PART_SIZE)
  (current_part-1).times do 
    read(part_size)
  end
  yield read(part_size) until eof?
end