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



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

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