Class: RedQuilt::Renderer::HTML
- Inherits:
-
Object
- Object
- RedQuilt::Renderer::HTML
- Defined in:
- lib/red_quilt/renderer/html.rb
Instance Method Summary collapse
-
#initialize(document) ⇒ HTML
constructor
A new instance of HTML.
- #render ⇒ Object
Constructor Details
#initialize(document) ⇒ HTML
Returns a new instance of HTML.
6 7 8 9 10 |
# File 'lib/red_quilt/renderer/html.rb', line 6 def initialize(document) @document = document @arena = document.arena @out = +"" end |
Instance Method Details
#render ⇒ Object
12 13 14 15 |
# File 'lib/red_quilt/renderer/html.rb', line 12 def render render_children(@document.root_id) @out end |