aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
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/compat
parent25d5f74f3ef54aba3baa43c4adcd323f2cb0fdc6 (diff)
downloadbrew-e851c9bf6c3adda268f1a307d6b49acb1ad1852d.tar.bz2
Style/Alias: Prefer `alias`.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/dependency_collector.rb2
-rw-r--r--Library/Homebrew/compat/formula.rb4
-rw-r--r--Library/Homebrew/compat/formula_specialties.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/compat/dependency_collector.rb b/Library/Homebrew/compat/dependency_collector.rb
index 27236ae4b..b18adc490 100644
--- a/Library/Homebrew/compat/dependency_collector.rb
+++ b/Library/Homebrew/compat/dependency_collector.rb
@@ -1,7 +1,7 @@
require "dependency_collector"
class DependencyCollector
- alias_method :_parse_symbol_spec, :parse_symbol_spec
+ alias _parse_symbol_spec parse_symbol_spec
def parse_symbol_spec(spec, tags)
case spec
diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb
index 41896d261..853a38706 100644
--- a/Library/Homebrew/compat/formula.rb
+++ b/Library/Homebrew/compat/formula.rb
@@ -72,8 +72,8 @@ class Formula
yield if block_given?
PythonRequirement.new
end
- alias_method :python2, :python
- alias_method :python3, :python
+ alias python2 python
+ alias python3 python
def startup_plist
odeprecated "Formula#startup_plist", "Formula#plist"
diff --git a/Library/Homebrew/compat/formula_specialties.rb b/Library/Homebrew/compat/formula_specialties.rb
index f709bcb5b..ec5e91ce8 100644
--- a/Library/Homebrew/compat/formula_specialties.rb
+++ b/Library/Homebrew/compat/formula_specialties.rb
@@ -25,7 +25,7 @@ class AmazonWebServicesFormula < Formula
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"] - ["#{libexec}/bin/service"]
end
- alias_method :standard_install, :install
+ alias standard_install install
# Use this method to generate standard caveats.
def standard_instructions(home_name, home_value = libexec)