Class: Pathname
Instance Method Summary collapse
-
#/(path) ⇒ Pathname
Append path segments and expand to absolute path.
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). end |