Class: Sass::Rails::CssCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/rails/compressor.rb

Instance Method Summary collapse

Instance Method Details

#compress(css) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/sass/rails/compressor.rb', line 6

def compress(css)
  Sass::Engine.new(css,
                   :syntax => :scss,
                   :cache => false,
                   :read_cache => false,
                   :style => :compressed).render
end