Class: JSMin
- Inherits:
-
Object
- Object
- JSMin
- Defined in:
- lib/jsmin.rb
Constant Summary collapse
- EOF =
-1
Instance Method Summary collapse
-
#initialize(original) ⇒ JSMin
constructor
A new instance of JSMin.
- #minify ⇒ Object
Constructor Details
#initialize(original) ⇒ JSMin
Returns a new instance of JSMin.
39 40 41 |
# File 'lib/jsmin.rb', line 39 def initialize(original) @original = original end |
Instance Method Details
#minify ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/jsmin.rb', line 43 def minify @output = '' @in = StringIO.new(@original) @out = StringIO.new(@output) @the_a = "" @the_b = "" jsmin @output end |