Parent

Methods

Sass::Rails::CssCompressor

Public Instance Methods

compress(css) click to toggle source
# File lib/sass/rails/compressor.rb, line 6
def compress(css)
  if css.count("\n") > 2
    Sass::Engine.new(css,
                     :syntax => :scss,
                     :cache => false,
                     :read_cache => false,
                     :style => :compressed).render
  else
    css
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.