Class: HtmlCompressor::HtmlCompressor

Inherits:
Compressor
  • Object
show all
Defined in:
lib/html_compressor/html_compressor.rb

Constant Summary

Constants inherited from Compressor

Compressor::VERSION

Instance Attribute Summary

Attributes inherited from Compressor

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Compressor

#command, #compress

Constructor Details

#initialize(options = {}) ⇒ HtmlCompressor

Returns a new instance of HtmlCompressor.



18
19
20
# File 'lib/html_compressor/html_compressor.rb', line 18

def initialize(options = {})
  super
end

Class Method Details

.compressor_typeObject

:nodoc:



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

def self.compressor_type #:nodoc:
  "html"
end

.default_optionsObject

:nodoc:



11
12
13
14
15
16
# File 'lib/html_compressor/html_compressor.rb', line 11

def self.default_options #:nodoc:
  super.merge(
    :compress_js => true,
    :compress_css => true
  )
end