Class: Trickster::Renderer::NormalRenderer

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

Instance Method Summary collapse

Instance Method Details

#render(io, content, options) ⇒ Object



4
5
6
7
8
# File 'lib/trickster/renderer/normal_renderer.rb', line 4

def render(io,content,options)
  io.puts "<h1>#{content[0]}</h1>"
  io.puts "<h2>#{content[1]}</h2>" unless content[1].nil? || content[1] == ''
  io.puts "<h3>#{content[2]}</h3>" unless content[2].nil? || content[2] == ''
end