Class: YMDP::Compressor::JavaScript

Inherits:
Base
  • Object
show all
Defined in:
lib/ymdp/compressor/compressor.rb

Overview

Compresses a JavaScript file using the specified compressor/minifier (currently YUI Compressor 2.4.2).

Usage

YMDP::Compressor::JavaScript.compress("filename.js")

Class Method Summary collapse

Methods inherited from Base

#base_path, base_path, #configuration, configuration, configure, #content_variables, display_path, #display_path, #paths, #servers

Class Method Details

.compress(filename) ⇒ Object

TODO: Add options hash



129
130
131
# File 'lib/ymdp/compressor/compressor.rb', line 129

def self.compress(filename)
  super(filename, "type" => "js")
end