method

chdir

v1_9_1_378 - Show latest stable - Class: Shell
chdir(path = nil, verbose = @verbose)
public

If called as iterator, it restores the current directory when the block ends.