Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deprecate .absolute/.relative, introduce .relpath
  • Loading branch information
lizmat committed Jan 5, 2015
1 parent be0653f commit cb3bd5f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/core/IO/Locally.pm
Expand Up @@ -11,9 +11,8 @@ my role IO::Locally {
);
}

method absolute(IO::Locally:D:) { $!abspath }
method chop(IO::Locally:D:) { $!abspath.chop }
method relative(IO::Locally:D: $root?) {
method relpath(IO::Locally:D: $root?) {
REMOVE-ROOT( $root // $*CWD.Str,$!abspath);
}

Expand Down Expand Up @@ -76,10 +75,18 @@ my role IO::Locally {
}
#?endif

method directory() {
method directory(IO::Locally:D:) {
DEPRECATED("dirname", |<2014.10 2015.10>);
self.dirname;
}
method absolute(IO::Locally:D:) {
DEPRECATED("abspath", |<2015.01 2016.01>);
$!abspath;
}
method relative(IO::Locally:D: |c) {
DEPRECATED("relpath", |<2015.01 2016.01>);
self.relpath(|c);
}
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit cb3bd5f

Please sign in to comment.