Class: Vedeu::Output::Output
- Inherits:
-
Object
- Object
- Vedeu::Output::Output
- Defined in:
- lib/vedeu/output/output.rb
Overview
Sends the output to the renderers.
Instance Attribute Summary collapse
Class Method Summary collapse
-
.render(output) ⇒ Array|String
Writes output to the defined renderers.
Instance Method Summary collapse
-
#initialize(output) ⇒ Vedeu::Output::Output
constructor
Return a new instance of Vedeu::Output::Output.
-
#render ⇒ Array
Send the view to the renderers.
Constructor Details
#initialize(output) ⇒ Vedeu::Output::Output
Return a new instance of Vedeu::Output::Output.
21 22 23 |
# File 'lib/vedeu/output/output.rb', line 21 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Array<Array<Vedeu::Views::Char>> (readonly)
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.
13 14 15 |
# File 'lib/vedeu/output/output.rb', line 13 def self.render(output) new(output).render end |
Instance Method Details
#render ⇒ Array
Send the view to the renderers.
28 29 30 |
# File 'lib/vedeu/output/output.rb', line 28 def render Vedeu::Terminal::Buffer.write(output).render end |