Module: Scarlet::Formatter

Defined in:
lib/scarlet/formatter.rb

Constant Summary collapse

DEFAULT =
Scarlet::Formatters::HTML
FORMATTERS =
{
  :html => Scarlet::Formatters::HTML,
  :xhtml => Scarlet::Formatters::HTML,
  :latex => Scarlet::Formatters::LATEX,
  :pdf => Scarlet::Formatters::PDF
}

Class Method Summary collapse

Class Method Details

.defaultObject



15
16
17
# File 'lib/scarlet/formatter.rb', line 15

def Formatter.default
  DEFAULT
end

.for(format) ⇒ Object



11
12
13
# File 'lib/scarlet/formatter.rb', line 11

def Formatter.for(format)
  FORMATTERS[format.to_sym]
end