I understand I can get current directory by
$CurrentDir = Dir.pwd
How about parent directory of current directory?
File.expand_path("..", Dir.pwd)