Class: YUI::Compressor::Ext::CLI::Base

Inherits:
Cri::Base
  • Object
show all
Defined in:
lib/yui/compressor/ext/cli/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



6
7
8
9
10
11
12
13
# File 'lib/yui/compressor/ext/cli/base.rb', line 6

def initialize
  super('yuicompress')

  # Add commands.
  add_command(Commands::All.new)
  add_command(Commands::Css.new)
  add_command(Commands::Js.new)
end

Class Method Details

.shared_baseExt::Cli::Base

Returns:

  • (Ext::Cli::Base)


16
17
18
# File 'lib/yui/compressor/ext/cli/base.rb', line 16

def self.shared_base
  @shared_base ||= self.new
end