Class: MarkdownExplorer::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_explorer/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Renderer

Returns a new instance of Renderer.



6
7
8
9
# File 'lib/markdown_explorer/renderer.rb', line 6

def initialize(text)
  @text = text
  render
end

Instance Attribute Details

#markupObject (readonly)

Returns the value of attribute markup.



4
5
6
# File 'lib/markdown_explorer/renderer.rb', line 4

def markup
  @markup
end