aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorAlexey Muranov2014-05-05 16:59:43 +0200
committerJack Nagel2014-05-05 15:27:34 -0500
commit00448edc4df043894b44d45bc596f5c2cf605c89 (patch)
tree36771fc9386f8dde3289393b46647cb5eed27109 /Library/Homebrew/extend
parent3f4fb6e5372046d0ef931395d9aa9f0c9aade9f2 (diff)
downloadhomebrew-00448edc4df043894b44d45bc596f5c2cf605c89.tar.bz2
Use #+ instead of #join to define Pathname#/
See also https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45826/diff/ext/pathname/lib/pathname.rb Closes #28972. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index ae8e72eae..33db3eed6 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -297,7 +297,7 @@ class Pathname
end
def / that
- join that.to_s
+ self + that.to_s
end
def ensure_writable