aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-03 14:53:08 -0500
committerJack Nagel2014-05-03 15:03:22 -0500
commit61dd796f255290b24f965d885e31ae433a4811ce (patch)
tree5ba2b40dce562dd9d15b72fc2a2ef8dbb4cad4cd /Library
parentb94d0e5f8df7242a56538c6cfed4b6d456ff86f4 (diff)
downloadbrew-61dd796f255290b24f965d885e31ae433a4811ce.tar.bz2
Suppress a warning on Ruby 2.1+
Diffstat (limited to 'Library')
-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