Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/pathname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def ascend

#
# Appends a pathname fragment to +self+ to produce a new Pathname object.
# Since +other+ is considered as a path relative to +self+, if +other+ is
# an absolute path, the new Pathname object is created from just +other+.
#
# p1 = Pathname.new("/usr") # Pathname:/usr
# p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby
Expand Down Expand Up @@ -399,6 +401,8 @@ def plus(path1, path2) # -> path # :nodoc:

#
# Joins the given pathnames onto +self+ to create a new Pathname object.
# This is effectively the same as using Pathname#+ to append +self+ and
# all arguments sequentially.
#
# path0 = Pathname.new("/usr") # Pathname:/usr
# path0 = path0.join("bin/ruby") # Pathname:/usr/bin/ruby
Expand Down