Sha256: af45ba1041e06bb47d9fd092379a3a39c7a5f1a275b459bf3a1c509b1b90ae8a

Contents?: true

Size: 374 Bytes

Versions: 32

Compression:

Stored size: 374 Bytes

Contents

module ChupaText
  module Formatters
    class Text
      def initialize(output)
        @output = output
        @texts = []
      end

      def format_start(data)
      end

      def format_extracted(data)
        @texts << data.body
      end

      def format_finish(data)
        @output << @texts.join("\n\x0c\n")
        @output << "\n"
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
chupa-text-1.3.6 lib/chupa-text/formatters/text.rb
chupa-text-1.3.5 lib/chupa-text/formatters/text.rb
chupa-text-1.3.4 lib/chupa-text/formatters/text.rb
chupa-text-1.3.3 lib/chupa-text/formatters/text.rb
chupa-text-1.3.2 lib/chupa-text/formatters/text.rb
chupa-text-1.3.1 lib/chupa-text/formatters/text.rb
chupa-text-1.3.0 lib/chupa-text/formatters/text.rb
chupa-text-1.2.9 lib/chupa-text/formatters/text.rb
chupa-text-1.2.8 lib/chupa-text/formatters/text.rb
chupa-text-1.2.7 lib/chupa-text/formatters/text.rb
chupa-text-1.2.6 lib/chupa-text/formatters/text.rb
chupa-text-1.2.5 lib/chupa-text/formatters/text.rb
chupa-text-1.2.4 lib/chupa-text/formatters/text.rb
chupa-text-1.2.3 lib/chupa-text/formatters/text.rb
chupa-text-1.2.2 lib/chupa-text/formatters/text.rb
chupa-text-1.2.1 lib/chupa-text/formatters/text.rb
chupa-text-1.2.0 lib/chupa-text/formatters/text.rb
chupa-text-1.1.9 lib/chupa-text/formatters/text.rb
chupa-text-1.1.8 lib/chupa-text/formatters/text.rb
chupa-text-1.1.7 lib/chupa-text/formatters/text.rb