aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-03 14:53:08 -0500
committerJack Nagel2014-05-03 15:03:22 -0500
commit633ae75d9576bff80b7755d93850e91ea92d18db (patch)
tree0d35cfc0ccb64ba0dfaeda7156e906b0ed54a304 /Library/Homebrew/extend/pathname.rb
parent616bb1c15e0bbe182c6fb9a3973970d4ea47ed7a (diff)
downloadhomebrew-633ae75d9576bff80b7755d93850e91ea92d18db.tar.bz2
Suppress a warning on Ruby 2.1+
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index c11775507..ae8e72eae 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -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