Add a method_defined? guard for Pathname#/

This was added to the stdlib in 391fc2eeec.
This commit is contained in:
Jack Nagel 2014-05-05 15:30:28 -05:00
parent 911206eae6
commit 68da1e7765

View File

@ -298,7 +298,7 @@ class Pathname
def / that
self + that.to_s
end
end unless method_defined?(:/)
def ensure_writable
saved_perms = nil