Skip to content
Closed
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
aliased / to + for Pathname class
  • Loading branch information
pigoz committed Jan 7, 2011
commit d5e5a1cc1f674268b5db1148c58c3746d07746a2
1 change: 1 addition & 0 deletions ext/pathname/lib/pathname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def +(other)
other = Pathname.new(other) unless Pathname === other
Pathname.new(plus(@path, other.to_s))
end
alias_method :/, :+

def plus(path1, path2) # -> path
prefix2 = path2
Expand Down