It will use the present working directory unless you specify otherwise.

irb(main):001:0> File.absolute_path 'a.txt'
=> "C:/Users/Joel/a.txt"
irb(main):002:0> File.absolute_path 'a.txt', 'C:/Test/'
=> "C:/Test/a.txt"
irb(main):003:0>

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