Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library pathname > class Pathname > expand_path
expand_path(*args)
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。 (cf. File.expand_path)