class CSSminify
def self.compress(source, length = 5000)
-
(String)
- Compressed CSS
Parameters:
-
length
(Integer
) -- Maximum line length -
CSS
(String, #read
) -- String or IO-like object that supports #read
def self.compress(source, length = 5000) self.new.compress(source, length) end
def compress(source = '', length = 5000)
-
(String)
- Compressed CSS
Parameters:
-
length
(Integer
) -- Maximum line length -
CSS
(String, #read
) -- String or IO-like object that supports #read
def compress(source = '', length = 5000) source = source.respond_to?(:read) ? source.read : source.to_s CssCompressor.compress(source, length) end
def initialize
def initialize end