Method: Path.tmpchdir

Defined in:
lib/path.rb

.tmpchdir(prefix_suffix = nil, *rest) {|tmpdir| ... } ⇒ Object

Yield Parameters:



82
83
84
85
86
87
88
# File 'lib/path.rb', line 82

def tmpchdir(prefix_suffix = nil, *rest)
  tmpdir do |dir|
    dir.chdir do
      yield dir
    end
  end
end