Append path segments and expand to absolute path.
Append path segments and expand to absolute path
file = Pathname(Dir.pwd) / "subdir1" / :subdir2 / "filename.ext"
Parameters:
path segment to concatenate with receiver
Returns:
receiver with path appended and expanded to an absolute path
12 13 14
# File 'lib/quickbooks/extlib/pathname.rb', line 12 def /(path) (self + path).expand_path end