Class: Shine::JS::Compressor
- Inherits:
-
Object
- Object
- Shine::JS::Compressor
- Defined in:
- lib/shine.rb
Instance Method Summary collapse
- #compress(options = {}) ⇒ Object
-
#initialize(filepath) ⇒ Compressor
constructor
A new instance of Compressor.
Constructor Details
#initialize(filepath) ⇒ Compressor
Returns a new instance of Compressor.
35 36 37 |
# File 'lib/shine.rb', line 35 def initialize(filepath) @filepath = filepath end |
Instance Method Details
#compress(options = {}) ⇒ Object
39 40 41 |
# File 'lib/shine.rb', line 39 def compress(={}) Shine.compress_file(@filepath) end |