Sha256: c401a82ba777f190900d1f04e6bc4f59396b1e9f0ce235fc96dccaf52d4a1e1a
Contents?: true
Size: 887 Bytes
Versions: 6
Compression:
Stored size: 887 Bytes
Contents
module Vedeu # Sends the output to the renderers. # class Output # Writes output to the defined renderers. # # @return [Array|String] # @see #initialize def self.render(output) new(output).render end # Return a new instance of Vedeu::Output. # # @param output [Array<Array<Vedeu::Views::Char>>] # @return [Output] def initialize(output) @output = output end # Send the view to the renderers. # # @return [Array] def render if Vedeu::Configuration.drb? Vedeu.trigger(:_drb_store_output_, output) # Vedeu::Renderers::HTML.to_file(Vedeu::VirtualBuffer.retrieve) end Vedeu.renderers.render(output) if Vedeu.ready? end protected # @!attribute [r] output # @return [Array<Array<Vedeu::Views::Char>>] attr_reader :output end # Output end # Vedeu
Version data entries
6 entries across 6 versions & 1 rubygems