Module: Tempfile::PathAttr

Defined in:
lib/tempfile.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



598
599
600
# File 'lib/tempfile.rb', line 598

def path
  @path
end

Class Method Details

.set_path(file, path) ⇒ Object



600
601
602
# File 'lib/tempfile.rb', line 600

def self.set_path(file, path)
  file.extend(self).instance_variable_set(:@path, path)
end