Module: Juicer::Install

Defined in:
lib/juicer/install/base.rb,
lib/juicer/install/rhino_installer.rb,
lib/juicer/install/jslint_installer.rb,
lib/juicer/install/yui_compressor_installer.rb,
lib/juicer/install/closure_compiler_installer.rb

Defined Under Namespace

Classes: Base, ClosureCompilerInstaller, JSLintInstaller, JslintInstaller, RhinoInstaller, YuiCompressorInstaller

Class Method Summary collapse

Class Method Details

.get(nameOrClass) ⇒ Object

Returns the installer. Accepts installer classes (which are returned directly), strings or symbols. Strings and symbols may be on the form :my_module which is expanded to Juicer::Install::MyModuleInstaller



181
182
183
184
# File 'lib/juicer/install/base.rb', line 181

def self.get(nameOrClass)
  return nameOrClass if nameOrClass.is_a? Class
  (nameOrClass.to_s + "_installer").classify(Juicer::Install)
end