Method: ContentData::ContentData#read_contents_chunk
- Defined in:
- lib/content_data/content_data.rb
#read_contents_chunk(filename, file, chunk_size) ⇒ Object
383 384 385 386 387 388 389 390 391 |
# File 'lib/content_data/content_data.rb', line 383 def read_contents_chunk(filename, file, chunk_size) chunk_index = 0 while chunk_index < chunk_size return reset_load_from_file(filename, file, "Expecting content line but " + "reached end of file after line #{$.}") unless file.gets chunk_index += 1 end true end |