+(other)
public
Appends a pathname fragment to self to produce a new Pathname object.
p1 = Pathname.new("/usr")
p2 = p1 + "bin/ruby"
p3 = p1 + "/etc/passwd"
This method doesn’t access the file system; it is pure string
manipulation.
Show source
def +(other)
other = Pathname.new(other) unless Pathname === other
Pathname.new(plus(@path, other.to_s))
end