Class: YUI::CssCompressor
- Inherits:
-
Compressor
- Object
- Compressor
- YUI::CssCompressor
- Defined in:
- lib/yui/compressor.rb
Constant Summary
Constants inherited from Compressor
Instance Attribute Summary
Attributes inherited from Compressor
Class Method Summary collapse
-
.compressor_type ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CssCompressor
constructor
Creates a new YUI::CssCompressor for minifying CSS code.
Methods inherited from Compressor
#command, #compress, default_options
Constructor Details
#initialize(options = {}) ⇒ CssCompressor
Creates a new YUI::CssCompressor for minifying CSS code.
Options are:
:charset
-
Specifies the character encoding to use. Defaults to
"utf-8"
. :line_break
-
By default, CSS will be compressed onto a single line. Use this option to specify the maximum number of characters in each line before a newline is added. If
:line_break
is 0, a newline is added after each CSS rule.
175 176 177 |
# File 'lib/yui/compressor.rb', line 175 def initialize( = {}) super end |
Class Method Details
.compressor_type ⇒ Object
:nodoc:
159 160 161 |
# File 'lib/yui/compressor.rb', line 159 def self.compressor_type #:nodoc: "css" end |