Class: YUI::CssCompressor

Inherits:
Compressor show all
Defined in:
lib/yui/compressor.rb

Constant Summary

Constants inherited from Compressor

YUI::Compressor::VERSION

Instance Attribute Summary

Attributes inherited from Compressor

#options

Class Method Summary collapse

Instance Method Summary collapse

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(options = {})
  super
end

Class Method Details

.compressor_typeObject

:nodoc:



159
160
161
# File 'lib/yui/compressor.rb', line 159

def self.compressor_type #:nodoc:
  "css"
end