Sha256: 3d3194de7e23a6eeec3c8571c1d9012f9714d0c456f377a3aa2b3ece4e626a6d

Contents?: true

Size: 733 Bytes

Versions: 4

Compression:

Stored size: 733 Bytes

Contents

module Vedeu

  module Renderers

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

      include Vedeu::Renderers::RendererOptions

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

      # Render a cleared output.
      #
      # @return [String]
      def clear
        ''
      end

      # @param output [Vedeu::Models::Page]
      # @return [String]
      def render(output)
        Vedeu::Output::Compressor.render(output)
      end

    end # Text

  end # Renderers

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.6.15 lib/vedeu/output/renderers/text.rb
vedeu-0.6.14 lib/vedeu/output/renderers/text.rb
vedeu-0.6.13 lib/vedeu/output/renderers/text.rb
vedeu-0.6.12 lib/vedeu/output/renderers/text.rb