Class: Tempfile

Inherits:
StringIO
  • Object
show all
Defined in:
lib/homura_vendor_tempfile.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTempfile

Returns a new instance of Tempfile.



6
7
8
# File 'lib/homura_vendor_tempfile.rb', line 6

def initialize(*)
  super("")
end

Class Method Details

.openObject

Raises:

  • (NotImplementedError)


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

#deleteObject



23
24
25
# File 'lib/homura_vendor_tempfile.rb', line 23

def delete
  self
end

#pathObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/homura_vendor_tempfile.rb', line 15

def path
  raise NotImplementedError, "Tempfile#path stubbed (no FS)"
end


19
20
21
# File 'lib/homura_vendor_tempfile.rb', line 19

def unlink
  self
end