Pathname: remove unused method starts_with?
This commit is contained in:
parent
cee1003782
commit
f409e4f22f
@ -218,11 +218,6 @@ class Pathname
|
|||||||
(dirname+readlink).exist?
|
(dirname+readlink).exist?
|
||||||
end
|
end
|
||||||
|
|
||||||
def starts_with? prefix
|
|
||||||
prefix = prefix.to_s
|
|
||||||
self.to_s[0, prefix.length] == prefix
|
|
||||||
end
|
|
||||||
|
|
||||||
# perhaps confusingly, this Pathname object becomes the symlink pointing to
|
# perhaps confusingly, this Pathname object becomes the symlink pointing to
|
||||||
# the src paramter.
|
# the src paramter.
|
||||||
def make_relative_symlink src
|
def make_relative_symlink src
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user