Suppress a warning on Ruby 2.1+

This commit is contained in:
Jack Nagel 2014-05-03 14:53:08 -05:00
parent b94d0e5f8d
commit 61dd796f25

View File

@ -88,6 +88,7 @@ class Pathname
protected :install_symlink_p
# we assume this pathname object is a file obviously
alias_method :old_write, :write if method_defined?(:write)
def write content
raise "Will not overwrite #{to_s}" if exist?
dirname.mkpath