Sha256: 417c91aef5652515d36a1e855673628b7e0eb17a570f06ee8a4dde852631b28c
Contents?: true
Size: 857 Bytes
Versions: 14
Compression:
Stored size: 857 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::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) end protected # @!attribute [r] output # @return [Array<Array<Vedeu::Char>>] attr_reader :output end # Output end # Vedeu
Version data entries
14 entries across 14 versions & 1 rubygems