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 Homebrew/homebrew#28972.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Alexey Muranov 2014-05-05 16:59:43 +02:00 committed by Jack Nagel
parent 1fd0488ff4
commit 911206eae6

View File

@ -297,7 +297,7 @@ class Pathname
end end
def / that def / that
join that.to_s self + that.to_s
end end
def ensure_writable def ensure_writable