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

Version Path
kitabu-2.0.0 lib/kitabu/parser/txt.rb
kitabu-1.0.6 lib/kitabu/parser/txt.rb
kitabu-1.0.5 lib/kitabu/parser/txt.rb
kitabu-1.0.4 lib/kitabu/parser/txt.rb
kitabu-1.0.3 lib/kitabu/parser/txt.rb
kitabu-1.0.2 lib/kitabu/parser/txt.rb
kitabu-1.0.1 lib/kitabu/parser/txt.rb
kitabu-1.0.0 lib/kitabu/parser/txt.rb
kitabu-1.0.0.rc4 lib/kitabu/parser/txt.rb
kitabu-1.0.0.rc3 lib/kitabu/parser/txt.rb