Class: MotherBrain::FileSystem::Tempfile
- Inherits:
-
Tempfile
- Object
- Tempfile
- MotherBrain::FileSystem::Tempfile
- Defined in:
- lib/mb/file_system/tempfile.rb
Overview
Thin wrapper around ::Tempfile to ensure we always write temporary files into motherbrain’s configured temporary directory
Constant Summary collapse
- BASENAME =
'mb_'.freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Tempfile
constructor
A new instance of Tempfile.
Constructor Details
#initialize(options = {}) ⇒ Tempfile
Returns a new instance of Tempfile.
20 21 22 |
# File 'lib/mb/file_system/tempfile.rb', line 20 def initialize( = {}) super(BASENAME, FileSystem.tmpdir, ) end |
Class Method Details
.open(options = {}) ⇒ Object
13 14 15 |
# File 'lib/mb/file_system/tempfile.rb', line 13 def open( = {}) super() end |