Class: Ruby2sass::CssRender
- Inherits:
-
Object
- Object
- Ruby2sass::CssRender
- Defined in:
- lib/ruby2sass/css_renderer.rb
Instance Method Summary collapse
-
#initialize(sass, include, compress) ⇒ CssRender
constructor
A new instance of CssRender.
- #render ⇒ Object
Constructor Details
#initialize(sass, include, compress) ⇒ CssRender
Returns a new instance of CssRender.
5 6 7 8 9 |
# File 'lib/ruby2sass/css_renderer.rb', line 5 def initialize(sass, include, compress) @sass = sass @included_files = include @compress = compress end |
Instance Method Details
#render ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/ruby2sass/css_renderer.rb', line 11 def render combined_sass = process_includes + @sass = { style: @compress ? :compressed : :expanded } SassC::Engine.new(combined_sass, **).render end |