Class: SassC::Engine
- Inherits:
-
Object
- Object
- SassC::Engine
- Defined in:
- lib/sassc/engine.rb
Instance Method Summary collapse
-
#initialize(template, options = {}) ⇒ Engine
constructor
A new instance of Engine.
- #render ⇒ Object
Constructor Details
#initialize(template, options = {}) ⇒ Engine
Returns a new instance of Engine.
3 4 5 6 |
# File 'lib/sassc/engine.rb', line 3 def initialize(template, = {}) #@options = self.class.normalize_options(options) @template = template end |
Instance Method Details
#render ⇒ Object
8 9 10 11 |
# File 'lib/sassc/engine.rb', line 8 def render return _to_tree.render unless @options[:quiet] Sass::Util.silence_sass_warnings {_to_tree.render} end |