Class: CSSPool::Visitors::MinCSS

Inherits:
Visitor
  • Object
show all
Defined in:
lib/css_press/min_css.rb

Constant Summary collapse

CSS_IDENTIFIER_ILLEGAL_CHARACTERS =
(0..255).to_a.pack('U*').gsub(/[a-zA-Z0-9_-]/, '')
CSS_STRING_ESCAPE_MAP =
{
  "\\" => "\\\\",
  "\"" => "\\\"",
  "\n" => "\\a ", # CSS2 4.1.3 p3.2
  "\r" => "\\\r",
  "\f" => "\\\f"
}

Instance Method Summary collapse

Constructor Details

#initializeMinCSS

Returns a new instance of MinCSS.



15
16
# File 'lib/css_press/min_css.rb', line 15

def initialize
end