Method: BugFix::Tempfile#size
- Defined in:
- lib/pik/contrib/zip/tempfile_bugfixed.rb
#size ⇒ Object Also known as: length
Returns the size of the temporary file. As a side effect, the IO buffer is flushed before determining the size.
133 134 135 136 137 138 139 140 |
# File 'lib/pik/contrib/zip/tempfile_bugfixed.rb', line 133 def size if @tmpfile @tmpfile.flush @tmpfile.stat.size else 0 end end |