mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 00:20:40 -04:00
Tempfile is a utility class for managing temporary files. When you create a Tempfile object, it will create a temporary file with a unique filename. A Tempfile objects behaves just like a File object, and you can perform all the usual file operations on it: reading data, writing data, changing its permissions, etc. So although this class does not explicitly document all instance methods supported by File, you can in fact call any File instance method on a Tempfile object. WWW: https://github.com/ruby/tempfile
9 lines
516 B
Text
9 lines
516 B
Text
Tempfile is a utility class for managing temporary files. When you create a
|
|
Tempfile object, it will create a temporary file with a unique filename. A
|
|
Tempfile objects behaves just like a File object, and you can perform all the
|
|
usual file operations on it: reading data, writing data, changing its
|
|
permissions, etc. So although this class does not explicitly document all
|
|
instance methods supported by File, you can in fact call any File instance
|
|
method on a Tempfile object.
|
|
|
|
WWW: https://github.com/ruby/tempfile
|