Module: Jackb

Defined in:
lib/jackb.rb,
lib/jackb/html.rb,
lib/jackb/markdown.rb,
lib/jackb/highlight.rb

Defined Under Namespace

Classes: Highlight, Html, Markdown

Class Method Summary collapse

Class Method Details

.render(text, format = 'html') ⇒ Object



10
11
12
# File 'lib/jackb.rb', line 10

def self.render(text, format = 'html')
  "Jackb::#{format.camelize}".constantize.new(text).render
end