Class: Phlexing::Minifier
- Inherits:
-
Object
- Object
- Phlexing::Minifier
- Defined in:
- lib/phlexing/minifier.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(source) ⇒ Minifier
constructor
A new instance of Minifier.
Constructor Details
#initialize(source) ⇒ Minifier
Returns a new instance of Minifier.
11 12 13 |
# File 'lib/phlexing/minifier.rb', line 11 def initialize(source) @source = source.to_s.dup end |
Class Method Details
.call ⇒ Object
7 8 9 |
# File 'lib/phlexing/minifier.rb', line 7 def self.call(...) new(...).call end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 |
# File 'lib/phlexing/minifier.rb', line 15 def call minify minify_html_entities @source end |