Class: BradyW::MinifyJs

Inherits:
BaseTask
  • Object
show all
Defined in:
lib/minifyjs.rb

Overview

Minifies Javascript files using the Yahoo YUI tool

Instance Attribute Summary collapse

Attributes inherited from BaseTask

#name, #unless

Instance Attribute Details

#charset=(value) ⇒ Object

Optional Charset to use (defaults to “utf-8”)



15
16
17
# File 'lib/minifyjs.rb', line 15

def charset=(value)
  @charset = value
end

#filesObject

Required Which files do you want to minify (in place)?



9
10
11
# File 'lib/minifyjs.rb', line 9

def files
  @files
end

#path=(value) ⇒ Object

Optional Where is the YUI compressor JAR? (defaults to “lib/”)



18
19
20
# File 'lib/minifyjs.rb', line 18

def path=(value)
  @path = value
end

#version=(value) ⇒ Object

Optional Version of YUI tool to use (defaults to 2.4.2)



12
13
14
# File 'lib/minifyjs.rb', line 12

def version=(value)
  @version = value
end