Class: Tempfile
- Inherits:
-
StringIO
- Object
- StringIO
- Tempfile
- Defined in:
- lib/homura_vendor_tempfile.rb
Class Method Summary collapse
Instance Method Summary collapse
- #close! ⇒ Object
- #delete ⇒ Object
-
#initialize ⇒ Tempfile
constructor
A new instance of Tempfile.
- #path ⇒ Object
- #unlink ⇒ Object
Constructor Details
#initialize ⇒ Tempfile
Returns a new instance of Tempfile.
6 7 8 |
# File 'lib/homura_vendor_tempfile.rb', line 6 def initialize(*) super('') end |
Class Method Details
.open ⇒ Object
10 11 12 |
# File 'lib/homura_vendor_tempfile.rb', line 10 def self.open(*) raise NotImplementedError, 'Tempfile is stubbed in homura (Workers have no writable FS)' end |
Instance Method Details
#close! ⇒ Object
26 27 28 |
# File 'lib/homura_vendor_tempfile.rb', line 26 def close! close end |
#delete ⇒ Object
22 23 24 |
# File 'lib/homura_vendor_tempfile.rb', line 22 def delete self end |
#path ⇒ Object
14 15 16 |
# File 'lib/homura_vendor_tempfile.rb', line 14 def path raise NotImplementedError, 'Tempfile#path stubbed (no FS)' end |
#unlink ⇒ Object
18 19 20 |
# File 'lib/homura_vendor_tempfile.rb', line 18 def unlink self end |