Class: Vedeu::Output
- Inherits:
-
Object
- Object
- Vedeu::Output
- Defined in:
- lib/vedeu/output/output.rb
Overview
Sends the content to the renderers.
Instance Attribute Summary collapse
- #content ⇒ Array<Array<Vedeu::Char>> readonly protected
Class Method Summary collapse
-
.render(content) ⇒ Array|String
Writes content to the defined renderers.
Instance Method Summary collapse
-
#initialize(content) ⇒ Output
constructor
Return a new instance of Vedeu::Output.
-
#render ⇒ Array
Send the view to the renderers.
Constructor Details
#initialize(content) ⇒ Output
Return a new instance of Vedeu::Output.
18 19 20 |
# File 'lib/vedeu/output/output.rb', line 18 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Array<Array<Vedeu::Char>> (readonly, protected)
39 40 41 |
# File 'lib/vedeu/output/output.rb', line 39 def content @content end |
Class Method Details
.render(content) ⇒ Array|String
Writes content to the defined renderers.
10 11 12 |
# File 'lib/vedeu/output/output.rb', line 10 def self.render(content) new(content).render end |
Instance Method Details
#render ⇒ Array
Send the view to the renderers.
25 26 27 28 29 30 31 32 33 |
# File 'lib/vedeu/output/output.rb', line 25 def render if Vedeu::Configuration.drb? Vedeu.trigger(:_drb_store_output_, content) Vedeu::Renderers::HTML.to_file(Vedeu::VirtualBuffer.retrieve) end Vedeu.renderers.render(content) end |