Class: Pathname

Inherits:
Object show all
Defined in:
lib/quickbooks/extlib/pathname.rb

Instance Method Summary collapse

Instance Method Details

#/(path) ⇒ Pathname

Append path segments and expand to absolute path

file = Pathname(Dir.pwd) / "subdir1" / :subdir2 / "filename.ext"

Parameters:

  • path (Pathname, String, #to_s)

    path segment to concatenate with receiver

Returns:

  • (Pathname)

    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