Sha256: a2040c03b2cc5c8cd20329755122c35bf7850ecfa284f2e6d2fda973590c291b
Contents?: true
Size: 928 Bytes
Versions: 9
Compression:
Stored size: 928 Bytes
Contents
module Vedeu module Renderers # Converts a grid of {Vedeu::Views::Char} objects into a stream of escape # sequences and content suitable for a terminal. # class Terminal include Vedeu::RendererOptions # Returns a new instance of Vedeu::Renderers::Terminal. # # @param options [Hash] # @return [Vedeu::Renderers::Terminal] def initialize(options = {}) @options = options || {} end # @param output [Array<Array<Vedeu::Views::Char>>] # @return [Array<String>] def render(output) Vedeu::Terminal.output(parsed(output)) end private # @param output [Array<Array<Vedeu::Views::Char>>] # @return [Array<Array<Vedeu::Views::Char>>] def parsed(output) Vedeu.timer('Compression') do Vedeu::Compressor.render(output) end end end # Terminal end # Renderers end # Vedeu
Version data entries
9 entries across 9 versions & 1 rubygems