Class: Packr::Rails::Compressor

Inherits:
Object
  • Object
show all
Defined in:
lib/packr/rails/compressor.rb

Instance Method Summary collapse

Instance Method Details

#compress(data) ⇒ Object



6
7
8
# File 'lib/packr/rails/compressor.rb', line 6

def compress(data)
  Packr.pack(data, compress_options)
end

#compress_optionsObject

FIXME: Get options via context_class.



11
12
13
# File 'lib/packr/rails/compressor.rb', line 11

def compress_options
  {} # Rails.config.packr.pack_options
end