Class: Bulldog::Attachment::Image

Inherits:
Base
  • Object
show all
Includes:
HasDimensions
Defined in:
lib/bulldog/attachment/image.rb

Instance Attribute Summary

Attributes inherited from Maybe

#name, #record, #saved, #stream, #value

Instance Method Summary collapse

Methods included from HasDimensions

#aspect_ratio, #dimensions, #height, included, #width

Methods inherited from Base

#content_type, #destroy, #examine, #file_name, #file_size, #initialize, #path, #process, #process!, #save, try, #url

Methods inherited from Maybe

#==, #copy_for, handle, #initialize, #interpolate_path, #interpolate_url, #load, #read_storable_attributes, #reflection, #reload, #saved?, #type

Constructor Details

This class inherits a constructor from Bulldog::Attachment::Base

Instance Method Details

#unloadObject



7
8
9
10
# File 'lib/bulldog/attachment/image.rb', line 7

def unload
  super
  @original_width = @original_height = nil
end