Class: Paperclip::Processors::DeflaterBase
- Inherits:
-
Paperclip::Processor
- Object
- Paperclip::Processor
- Paperclip::Processors::DeflaterBase
- Defined in:
- lib/paperclip/processors/deflater_base.rb
Instance Method Summary collapse
-
#initialize(file, options = {}, attachment = nil) ⇒ DeflaterBase
constructor
A new instance of DeflaterBase.
- #make ⇒ Object
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, = {}, = nil) super @format = @options[:format] @current_format = File.extname(@file.path) @basename = File.basename(@file.path, @current_format) end |
Instance Method Details
#make ⇒ Object
15 16 17 |
# File 'lib/paperclip/processors/deflater_base.rb', line 15 def make raise NotImplementedError end |