irb(main):001:0> Dir.pwd
=> "C:/Users/Joel"
irb(main):002:0> Dir.chdir 'E:/'
=> 0
irb(main):003:0> Dir.pwd
=> "E:/"

-- 
Posted via http://www.ruby-forum.com/.