Sha256: 82c33b899d1408b3a3b8328e4649fa8e06bd0c3d1c0a086535e38f81ed5b233e
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module Kitabu module Parser class Txt < Base def parse spawn_command ["html2text", "-style", "pretty", "-o", txt_file.to_s, html_file.to_s] end def html_file root_dir.join("output/#{name}.html") end def txt_file root_dir.join("output/#{name}.txt") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitabu-1.0.0.rc2 | lib/kitabu/parser/txt.rb |