keg: don't conditionally switch alias target
This seems to be a remnant of Ruby 1.8.
This commit is contained in:
parent
0810039868
commit
34e13fc527
@ -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}>"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user