Class: BradyW::MinifyJs
- Defined in:
- lib/minifyjs.rb
Overview
Minifies Javascript files using the Yahoo YUI tool
Instance Attribute Summary collapse
-
#charset ⇒ Object
writeonly
Optional Charset to use (defaults to “utf-8”).
-
#files ⇒ Object
Required Which files do you want to minify (in place)?.
-
#path ⇒ Object
writeonly
Optional Where is the YUI compressor JAR? (defaults to “lib/”).
-
#version ⇒ Object
writeonly
Optional Version of YUI tool to use (defaults to 2.4.2).
Attributes inherited from BaseTask
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 |
#files ⇒ Object
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 |