Sha256: 99dbaa53ffcd976c1e784127aa0acd811361cc5595375209bcd0675482bfbfcc

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

module Bookshelf
  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

4 entries across 4 versions & 1 rubygems

Version Path
bookshelf-1.2.1 lib/bookshelf/parser/txt.rb
bookshelf-1.2.0 lib/bookshelf/parser/txt.rb
bookshelf-1.1.0 lib/bookshelf/parser/txt.rb
bookshelf-1.0.0 lib/bookshelf/parser/txt.rb