Class: Vedeu::Output::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/output/output.rb

Overview

Sends the output to the renderers.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Vedeu::Output::Output

Return a new instance of Vedeu::Output::Output.

Parameters:



21
22
23
# File 'lib/vedeu/output/output.rb', line 21

def initialize(output)
  @output = output
end

Instance Attribute Details

#outputArray<Array<Vedeu::Views::Char>> (readonly)

Returns:



34
35
36
# File 'lib/vedeu/output/output.rb', line 34

def output
  @output
end

Class Method Details

.render(output) ⇒ Array|String

Writes output to the defined renderers.

Returns:

  • (Array|String)

See Also:



13
14
15
# File 'lib/vedeu/output/output.rb', line 13

def self.render(output)
  new(output).render
end

Instance Method Details

#renderArray

Send the view to the renderers.

Returns:

  • (Array)


28
29
30
# File 'lib/vedeu/output/output.rb', line 28

def render
  Vedeu::Terminal::Buffer.write(output).render
end