Class: Tempfile

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

Overview

:nodoc:

Direct Known Subclasses

Lipsiadmin::Attachment::Tempfile

Instance Method Summary collapse

Instance Method Details

#sizeObject



52
53
54
55
56
57
58
59
60
# File 'lib/data_base/attachment/iostream.rb', line 52

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