Method: Path.tmpchdir

Defined in:
lib/epath.rb

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

Yield Parameters:



71
72
73
74
75
76
77
# File 'lib/epath.rb', line 71

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