Method: Haml::Exec::HTML2Haml#initialize

Defined in:
lib/haml/exec.rb

#initialize(args) ⇒ HTML2Haml

:nodoc:



315
316
317
318
319
320
321
322
323
324
325
326
327
# File 'lib/haml/exec.rb', line 315

def initialize(args)
  super

  @module_opts = {}

  begin
    require 'haml/html'
  rescue LoadError => err
    dep = err.message.scan(/^no such file to load -- (.*)/)[0]
    puts "Required dependency #{dep} not found!"
    exit 1
  end
end