Method: ContentData::ContentData#read_contents_chunk
- Defined in:
- lib/content_data/content_data.rb
#read_contents_chunk(filename, file, chunk_size) ⇒ Object
462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/content_data/content_data.rb', line 462 def read_contents_chunk(filename, file, chunk_size) chunk_index = 0 while chunk_index < chunk_size unless file.gets raise("Parse error of content data file:#{filename} line ##{$.}\n" + "Expecting content line but reached end of file") end chunk_index += 1 end true end |