Class: StructuredTextRenderer::EntryBlockRenderer

Inherits:
BaseNodeRenderer show all
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

#mappings

Instance Method Summary collapse

Methods inherited from BaseNodeRenderer

#initialize

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