Sha256: 8e77f41ec93fccafc2a8473da85a412fbc2c2ac6447fea877137a70952647dd4
Contents?: true
Size: 348 Bytes
Versions: 10
Compression:
Stored size: 348 Bytes
Contents
module Kitabu module Parser class Txt < Base def parse spawn_command ["html2text", "-style", "pretty", "-nobs", "-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
10 entries across 10 versions & 1 rubygems