Module: HTML2Slim

Defined in:
lib/html2slim.rb,
lib/html2slim/command.rb,
lib/html2slim/version.rb,
lib/html2slim/converter.rb

Defined Under Namespace

Classes: Command, Converter, ERBCommand, ERBConverter, HTMLCommand, HTMLConverter

Constant Summary collapse

VERSION =
'0.2.1'

Class Method Summary collapse

Class Method Details

.convert!(input, format = :html) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/html2slim.rb', line 5

def self.convert!(input, format=:html)
  if format.to_s == "html"
    HTMLConverter.new(input)
  else
    ERBConverter.new(input)
  end
end