aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-05-17 20:34:31 +0800
committerXu Cheng2015-05-27 13:53:41 +0800
commitc14794baa8f17dc7d933e5ef9559302707b7a801 (patch)
tree2847f50c90c4220b2c9fa26fd99df191b9bbf502 /Library
parentc41c473513e736d784164c93779c4d7ab4eca56f (diff)
downloadbrew-c14794baa8f17dc7d933e5ef9559302707b7a801.tar.bz2
keg: add rack method
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 2271fd697..3caf218de 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -112,6 +112,10 @@ class Keg
path.to_s
end
+ def rack
+ path.parent
+ end
+
if Pathname.method_defined?(:to_path)
alias_method :to_path, :to_s
else