Method: SectionStripper.strip
- Defined in:
- lib/kindlestrip.rb
.strip(infile, outfile = nil, verbose = true) ⇒ Object
216 217 218 219 220 221 222 |
# File 'lib/kindlestrip.rb', line 216 def self.strip(infile, outfile = nil, verbose = true) outfile = infile unless outfile data_file = File.binread(infile) stripped_file = new(data_file, verbose) File.binwrite(outfile, stripped_file.get_result) stripped_file end |