Class: Paperclip::Processors::DeflaterBase

Inherits:
Paperclip::Processor
  • Object
show all
Defined in:
lib/paperclip/processors/deflater_base.rb

Direct Known Subclasses

Deflater, Gzip, Plain

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}, attachment = nil) ⇒ DeflaterBase

Returns a new instance of DeflaterBase.



8
9
10
11
12
13
# File 'lib/paperclip/processors/deflater_base.rb', line 8

def initialize(file, options = {}, attachment = nil)
  super
  @format          = @options[:format]
  @current_format  = File.extname(@file.path)
  @basename        = File.basename(@file.path, @current_format)
end

Instance Method Details

#makeObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/paperclip/processors/deflater_base.rb', line 15

def make
  raise NotImplementedError
end