Module: CssToolkit

Includes:
YuiCompressor
Defined in:
lib/css_toolkit.rb

Constant Summary collapse

VERSION =
"1.3"

Instance Method Summary collapse

Instance Method Details

#css_tidy(css, opts = {}) ⇒ Object



16
17
18
19
# File 'lib/css_toolkit.rb', line 16

def css_tidy(css, opts={})
	tidy = Tidy.new()
	tidy.tidy(css, line_length)
end

#yui_compressor(css, line_length = 0) ⇒ Object



11
12
13
14
# File 'lib/css_toolkit.rb', line 11

def yui_compressor(css, line_length=0)
	yui = Yui.new()
	yui.compress(css, line_length)
end