Skip to content
Browse files

Adding a little bit of documentation to Compressor

  • Loading branch information...
1 parent acb5b2a commit a141ff558938867a83cf77eb30c7b02fc54e3981 @petebrowne committed Apr 19, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/sprockets/sass/compressor.rb
View
13 lib/sprockets/sass/compressor.rb 100644 → 100755
@@ -3,17 +3,20 @@
module Sprockets
module Sass
class Compressor
+ # Compresses the given CSS using Sass::Engine's
+ # :compressed output style.
def compress(css)
if css.count("\n") > 2
::Sass::Engine.new(css,
- :syntax => :scss,
- :cache => false,
- :read_cache => false,
- :style => :compressed).render
+ :syntax => :scss,
+ :cache => false,
+ :read_cache => false,
+ :style => :compressed
+ ).render
else
css
end
end
end
end
-end
+end

0 comments on commit a141ff5

Please sign in to comment.
Something went wrong with that request. Please try again.