Sha256: 3e431953dc78cf991bfde7c7311c79d0b84d7d284d723159d1c0dbbdfbe6bbdf
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
module Kitabu module Parser class Txt < Base def parse command = ["html2text", "-style", "pretty", "-o", txt_file.to_s, html_file.to_s] puts command.join(' ') Process.wait Process.spawn(*command) true 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.rc1 | lib/kitabu/parser/txt.rb |