aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-23 18:13:48 +0200
committerMarkus Reiter2016-09-23 18:19:53 +0200
commite851c9bf6c3adda268f1a307d6b49acb1ad1852d (patch)
treebb34a927e27ee6133fdbca4695e2b8db98e0e2f5 /Library/Homebrew/extend/fileutils.rb
parent25d5f74f3ef54aba3baa43c4adcd323f2cb0fdc6 (diff)
downloadbrew-e851c9bf6c3adda268f1a307d6b49acb1ad1852d.tar.bz2
Style/Alias: Prefer `alias`.
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
-rw-r--r--Library/Homebrew/extend/fileutils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index d5bc3e6d7..b889f9ded 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -84,7 +84,7 @@ module FileUtils
end
# @private
- alias_method :old_mkdir, :mkdir
+ alias old_mkdir mkdir
# A version of mkdir that also changes to that folder in a block.
def mkdir(name, &_block)
@@ -122,7 +122,7 @@ module FileUtils
if method_defined?(:ruby)
# @private
- alias_method :old_ruby, :ruby
+ alias old_ruby ruby
end
# Run the `ruby` Homebrew is using rather than whatever is in the `PATH`.