Sha256: 25ff204ca5ab54bab6adddc9af9583526209ab4d8119073b3a96bc2b0c170f47

Contents?: true

Size: 628 Bytes

Versions: 4

Compression:

Stored size: 628 Bytes

Contents

module Vedeu

  module Renderers

    # Converts a grid of {Vedeu::Char} objects into a stream of escape sequences
    # and content.
    #
    # @api private
    class Text

      include Vedeu::RendererOptions

      # Returns a new instance of Vedeu::Renderers::Text.
      #
      # @param options [Hash]
      # @return [Vedeu::Renderers::Text]
      def initialize(options = {})
        @options = options || {}
      end

      # @param output [Array<Array<Vedeu::Char>>]
      # @return [String]
      def render(output)
        Vedeu::Compressor.render(output)
      end

    end # Text

  end # Renderers

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.4.56 lib/vedeu/output/renderers/text.rb
vedeu-0.4.55 lib/vedeu/output/renderers/text.rb
vedeu-0.4.54 lib/vedeu/output/renderers/text.rb
vedeu-0.4.53 lib/vedeu/output/renderers/text.rb