Class: Tempfile

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/iostream.rb

Direct Known Subclasses

Paperclip::Tempfile

Instance Method Summary collapse

Instance Method Details

#sizeObject



48
49
50
51
52
53
54
55
56
# File 'lib/paperclip/iostream.rb', line 48

def size
  if @tmpfile
    @tmpfile.fsync
    @tmpfile.flush
    @tmpfile.stat.size
  else
    0
  end
end