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