keg: don't conditionally switch alias target

This seems to be a remnant of Ruby 1.8.
This commit is contained in:
Alyssa Ross 2017-01-18 22:20:44 +00:00
parent 0810039868
commit 34e13fc527

View File

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