Method: CSSminify2.compress

Defined in:
lib/cssminify2.rb

.compress(source, length = 5000) ⇒ String

Compress CSS with YUI

Parameters:

  • CSS (String, #read)

    String or IO-like object that supports #read

  • length (Integer) (defaults to: 5000)

    Maximum line length

Returns:

  • (String)

    Compressed CSS



18
19
20
# File 'lib/cssminify2.rb', line 18

def self.compress(source, length = 5000)
  self.new.compress(source, length)
end