method

chdir

v1_8_7_72 - Show latest stable - Class: Shell
chdir(path = nil)
public

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