Class: CssDryer2::NcssHandler

Inherits:
Object
  • Object
show all
Includes:
CssDryer::Processor
Defined in:
lib/css_dryer_2/ncss_handler.rb

Constant Summary

Constants included from CssDryer::Processor

CssDryer::Processor::VERSION

Instance Method Summary collapse

Methods included from CssDryer::Processor

#nested_css_to_structure, #process, #structure_to_css

Instance Method Details

#compile(template) ⇒ Object


12
13
14
15
16
# File 'lib/css_dryer_2/ncss_handler.rb', line 12

def compile(template)
  output_buffer = String.new
  erb_compiled_template = ERB.new(template, nil, nil, "@output_buffer").result(binding)
  process(erb_compiled_template)
end