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/keg.rb | |
| parent | 25d5f74f3ef54aba3baa43c4adcd323f2cb0fdc6 (diff) | |
| download | brew-e851c9bf6c3adda268f1a307d6b49acb1ad1852d.tar.bz2 | |
Style/Alias: Prefer `alias`.
Diffstat (limited to 'Library/Homebrew/keg.rb')
| -rw-r--r-- | Library/Homebrew/keg.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 65ce6480a..ac31343d0 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -118,9 +118,9 @@ class Keg end if Pathname.method_defined?(:to_path) - alias_method :to_path, :to_s + alias to_path to_s else - alias_method :to_str, :to_s + alias to_str to_s end def inspect @@ -130,7 +130,7 @@ class Keg def ==(other) instance_of?(other.class) && path == other.path end - alias_method :eql?, :== + alias eql? == def hash path.hash |
