diff options
| author | Markus Reiter | 2016-09-23 18:13:48 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 18:19:53 +0200 |
| commit | e851c9bf6c3adda268f1a307d6b49acb1ad1852d (patch) | |
| tree | bb34a927e27ee6133fdbca4695e2b8db98e0e2f5 /Library/Homebrew/development_tools.rb | |
| parent | 25d5f74f3ef54aba3baa43c4adcd323f2cb0fdc6 (diff) | |
| download | brew-e851c9bf6c3adda268f1a307d6b49acb1ad1852d.tar.bz2 | |
Style/Alias: Prefer `alias`.
Diffstat (limited to 'Library/Homebrew/development_tools.rb')
| -rw-r--r-- | Library/Homebrew/development_tools.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb index 14e1a07f7..7221e5b52 100644 --- a/Library/Homebrew/development_tools.rb +++ b/Library/Homebrew/development_tools.rb @@ -22,8 +22,7 @@ class DevelopmentTools def installation_instructions "Install Clang or brew install gcc" end - alias_method :custom_installation_instructions, - :installation_instructions + alias custom_installation_instructions installation_instructions def default_cc cc = DevelopmentTools.locate "cc" @@ -48,7 +47,7 @@ class DevelopmentTools `#{path} --version 2>/dev/null`[/build (\d{4,})/, 1].to_i end end - alias_method :gcc_4_0_build_version, :gcc_40_build_version + alias gcc_4_0_build_version gcc_40_build_version def gcc_42_build_version @gcc_42_build_version ||= @@ -59,7 +58,7 @@ class DevelopmentTools end end end - alias_method :gcc_build_version, :gcc_42_build_version + alias gcc_build_version gcc_42_build_version def clang_version @clang_version ||= |
