Class: Pathname

Inherits:
Object show all
Defined in:
lib/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"

12
13
14
# File 'lib/extlib/pathname.rb', line 12

def /(path)
  (self + path).expand_path
end