aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Ross2017-01-18 22:20:44 +0000
committerAlyssa Ross2017-01-19 17:06:38 +0000
commit34e13fc52750f1f13df96809034d59ce01af827f (patch)
tree04aa52695a41c15c9e6c08af00b895e3204d4595
parent0810039868f2fca0f69cbc6d869e53ae97129e98 (diff)
downloadbrew-34e13fc52750f1f13df96809034d59ce01af827f.tar.bz2
keg: don't conditionally switch alias target
This seems to be a remnant of Ruby 1.8.
-rw-r--r--Library/Homebrew/keg.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 14eb0e3f3..4c869b048 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -192,11 +192,7 @@ class Keg
path.parent
end
- if Pathname.method_defined?(:to_path)
- alias to_path to_s
- else
- alias to_str to_s
- end
+ alias to_path to_s
def inspect
"#<#{self.class.name}:#{path}>"