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 13 |
# 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
27 28 29 |
# File 'lib/homura_vendor_tempfile.rb', line 27 def close! close end |
#delete ⇒ Object
23 24 25 |
# File 'lib/homura_vendor_tempfile.rb', line 23 def delete self end |
#path ⇒ Object
15 16 17 |
# File 'lib/homura_vendor_tempfile.rb', line 15 def path raise NotImplementedError, "Tempfile#path stubbed (no FS)" end |
#unlink ⇒ Object
19 20 21 |
# File 'lib/homura_vendor_tempfile.rb', line 19 def unlink self end |