Method: SectionStripper#load_section
- Defined in:
- lib/kindlestrip.rb
#load_section(section) ⇒ Object
59 60 61 62 63 64 65 66 67 |
# File 'lib/kindlestrip.rb', line 59 def load_section(section) if section + 1 == @num_sections endoff = @data_file.length else endoff = @sections[section + 1][0] end off = @sections[section][0] @data_file[off...endoff] end |