Sha256: 1b60ba13b807a99c45dc5b2d37a708d758bb782e0b3f5c645b661998b16cf1fb
Contents?: true
Size: 895 Bytes
Versions: 10
Compression:
Stored size: 895 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 [Vedeu::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::VirtualBuffers.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
10 entries across 10 versions & 1 rubygems