Add a method_defined? guard for Pathname#/
This was added to the stdlib in 391fc2eeec.
This commit is contained in:
parent
911206eae6
commit
68da1e7765
@ -298,7 +298,7 @@ class Pathname
|
||||
|
||||
def / that
|
||||
self + that.to_s
|
||||
end
|
||||
end unless method_defined?(:/)
|
||||
|
||||
def ensure_writable
|
||||
saved_perms = nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user