Sha256: 1d7b85a17875be617395adba913117428b70d22b0fcc2ca13357a567da491ecc
Contents?: true
Size: 936 Bytes
Versions: 5
Compression:
Stored size: 936 Bytes
Contents
module Vedeu module Renderers # Converts a grid of {Vedeu::Char} objects into a stream of escape sequences # and content suitable for a terminal. class Terminal # @param output [Array<Array<Vedeu::Char>>] # @return [String] def self.render(*output) new(*output).render end # Returns a new instance of Vedeu::Renderers::Terminal. # # @param output [Array<Array<Vedeu::Char>>] # @return [Vedeu::Renderers::Terminal] def initialize(*output) @output = output end # @return [Array<String>] def render Vedeu::Terminal.output(parsed) end protected # @!attribute [r] output # @return [Array<Array<Vedeu::Char>>] attr_reader :output private # @return [String] def parsed Vedeu::Compressor.new(output).render end end # Terminal end # Renderers end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems