Class: StructuredTextRenderer::EntryBlockRenderer
- Inherits:
-
BaseNodeRenderer
- Object
- BaseNodeRenderer
- StructuredTextRenderer::EntryBlockRenderer
- Defined in:
- lib/structured_text_renderer/block_renderers/entry_block_renderer.rb
Overview
Default embedded entry renderer. Dumps entry to string. This renderer should be overridden for your particular applications.
Instance Attribute Summary
Attributes inherited from BaseNodeRenderer
Instance Method Summary collapse
-
#render(node) ⇒ Object
Renders embedded entry node.
Methods inherited from BaseNodeRenderer
Constructor Details
This class inherits a constructor from StructuredTextRenderer::BaseNodeRenderer
Instance Method Details
#render(node) ⇒ Object
Renders embedded entry node.
9 10 11 |
# File 'lib/structured_text_renderer/block_renderers/entry_block_renderer.rb', line 9 def render(node) "<div>#{node['data']}</div>" end |