Skip to content
Snippets Groups Projects
Commit 34e13fc5 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

keg: don't conditionally switch alias target

This seems to be a remnant of Ruby 1.8.
parent 08100398
No related branches found
No related tags found
No related merge requests found
......@@ -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}>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment