Returns the size of the temporary file.
As a side effect, the IO buffer is flushed before
determining the size.
# File lib/tempfile.rb, line 226
def size
if [email protected]?
@tmpfile.size # File#size calls rb_io_flush_raw()
else
File.size(@tmpfile.path)
end
end