class YUI::JavaScriptCompressor

def self.compressor_type #:nodoc:

:nodoc:
def self.compressor_type #:nodoc:
  "js"
end

def self.default_options #:nodoc:

:nodoc:
def self.default_options #:nodoc:
  super.merge(
    :munge    => false,
    :optimize => true,
    :preserve_semicolons => false
  )
end

def command_option_for_munge(munge)

def command_option_for_munge(munge)
  munge ? [] : ["--nomunge"]
end

def command_option_for_optimize(optimize)

def command_option_for_optimize(optimize)
  optimize ? [] : ["--disable-optimizations"]
end

def command_option_for_preserve_semicolons(preserve_semicolons)

def command_option_for_preserve_semicolons(preserve_semicolons)
  preserve_semicolons ? ["--preserve-semi"] : []
end

def initialize(options = {})


JSLint.
after each statement to appease tools like
Compressor will ensure semicolons exist
:preserve_semicolons:: Defaults to +false+. If +true+, YUI
Defaults to +true+.
declarations to use as few characters as possible.
JavaScript object property access and object literal
:optimize:: Specifies whether YUI Compressor should optimize
variable names when possible. Defaults to +false+.
:munge:: Specifies whether YUI Compressor should shorten local
newline is added after each JavaScript statement.
newline is added. If :line_break is 0, a
maximum number of characters in each line before a
single line. Use this option to specify the
:line_break:: By default, JavaScript will be compressed onto a
"utf-8".
:charset:: Specifies the character encoding to use. Defaults to

Options are:

Creates a new YUI::JavaScriptCompressor for minifying JavaScript code.
def initialize(options = {})
  super
end