class Debride

Public Instance Methods

process_haml(file) click to toggle source
# File lib/debride_haml.rb, line 9
def process_haml file
  haml = File.read file

  ruby = ::Haml::Engine.new(haml, ugly: true).precompiled

  begin
    RubyParser.new.process ruby, file
  rescue => e
    warn ruby if option[:verbose]
    raise e
  end
end