Sha256: c7c9a5265aaf3be339c949167d9ac00a0da68140d3e7de99fcfd06563805c27a

Contents?: true

Size: 609 Bytes

Versions: 14

Compression:

Stored size: 609 Bytes

Contents

module Vedeu

  module Renderers

    # Converts a grid of {Vedeu::Char} objects into a stream of escape sequences
    # and content.
    #
    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

14 entries across 14 versions & 1 rubygems

Version Path
vedeu-0.5.4 lib/vedeu/output/renderers/text.rb
vedeu-0.5.3 lib/vedeu/output/renderers/text.rb
vedeu-0.5.2 lib/vedeu/output/renderers/text.rb
vedeu-0.5.1 lib/vedeu/output/renderers/text.rb
vedeu-0.5.0 lib/vedeu/output/renderers/text.rb
vedeu-0.4.65 lib/vedeu/output/renderers/text.rb
vedeu-0.4.64 lib/vedeu/output/renderers/text.rb
vedeu-0.4.63 lib/vedeu/output/renderers/text.rb
vedeu-0.4.62 lib/vedeu/output/renderers/text.rb
vedeu-0.4.61 lib/vedeu/output/renderers/text.rb
vedeu-0.4.60 lib/vedeu/output/renderers/text.rb
vedeu-0.4.59 lib/vedeu/output/renderers/text.rb
vedeu-0.4.58 lib/vedeu/output/renderers/text.rb
vedeu-0.4.57 lib/vedeu/output/renderers/text.rb