Class: Spirit::Render::HTML
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- Spirit::Render::HTML
- Includes:
- Processable
- Defined in:
- lib/spirit/render/html.rb
Overview
HTML Renderer for Genie Markup Language, which is just GitHub Flavored Markdown with Embedded YAML for describing problems. Designed for use with Redcarpet.
Instance Attribute Summary collapse
-
#navigation ⇒ Object
Returns the value of attribute navigation.
-
#nesting ⇒ Object
Returns the value of attribute nesting.
-
#problems ⇒ Object
Returns the value of attribute problems.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ HTML
constructor
Creates a new HTML renderer.
Methods included from Processable
Constructor Details
#initialize(opts = {}) ⇒ HTML
Creates a new HTML renderer.
32 33 34 |
# File 'lib/spirit/render/html.rb', line 32 def initialize(opts={}) super RENDERER_CONFIG.merge opts end |
Instance Attribute Details
#navigation ⇒ Object
Returns the value of attribute navigation.
20 21 22 |
# File 'lib/spirit/render/html.rb', line 20 def @navigation end |
#nesting ⇒ Object
Returns the value of attribute nesting.
20 21 22 |
# File 'lib/spirit/render/html.rb', line 20 def nesting @nesting end |
#problems ⇒ Object
Returns the value of attribute problems.
20 21 22 |
# File 'lib/spirit/render/html.rb', line 20 def problems @problems end |