keg: add rack method

This commit is contained in:
Xu Cheng 2015-05-17 20:34:31 +08:00
parent c41c473513
commit c14794baa8

View File

@ -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