Class: Phlexing::Minifier

Inherits:
Object
  • Object
show all
Defined in:
lib/phlexing/minifier.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.callObject



7
8
9
# File 'lib/phlexing/minifier.rb', line 7

def self.call(...)
  new(...).call
end

Instance Method Details

#callObject



15
16
17
18
19
20
# File 'lib/phlexing/minifier.rb', line 15

def call
  minify
  minify_html_entities

  @source
end