This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Pathname
|
||||
|
||||
# Change current working directory of the process
|
||||
# to the given path
|
||||
#
|
||||
# See Dir.chdir
|
||||
#
|
||||
# CREDIT: Ryan Duryea
|
||||
|
||||
def chdir(&block)
|
||||
Dir.chdir(self, &block)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user