expand_path(default_dir = '.') -> Pathname
[permalink][rdoc]Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path # => #<Pathname:/path/to/testfile>
path.expand_path("../") # => #<Pathname:/path/testfile>
[SEE_ALSO] File.expand_path