Class: Octodown::Renderer::Raw

Inherits:
Object
  • Object
show all
Includes:
Renderable
Defined in:
lib/octodown/renderer/raw.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Renderable

included

Constructor Details

#initialize(markdown, options) ⇒ Raw

Returns a new instance of Raw.



12
13
14
# File 'lib/octodown/renderer/raw.rb', line 12

def initialize(markdown, options)
  @content = HTML.render markdown, options
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



10
11
12
# File 'lib/octodown/renderer/raw.rb', line 10

def content
  @content
end

Instance Method Details

#presentObject



16
17
18
# File 'lib/octodown/renderer/raw.rb', line 16

def present
  STDOUT.puts content
end