method

chdir

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

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