Skip to content

Commit

Permalink
Add gist methods to AbsolutePath, NQP and Perl6 repositories
Browse files Browse the repository at this point in the history
This gives much more uniform and less confusing output on:
.say for $*REPO.repo-chain
Should have done this years ago...
  • Loading branch information
niner committed Apr 21, 2018
1 parent 20ccacc commit 8f3237c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/CompUnit/Repository/AbsolutePath.pm6
Expand Up @@ -46,6 +46,10 @@ class CompUnit::Repository::AbsolutePath does CompUnit::Repository {
method path-spec() {
'ap#'
}

multi method gist(CompUnit::Repository::AbsolutePath:D:) {
self.path-spec
}
}

# vim: ft=perl6 expandtab sw=4
4 changes: 4 additions & 0 deletions src/core/CompUnit/Repository/NQP.pm6
Expand Up @@ -31,6 +31,10 @@ class CompUnit::Repository::NQP does CompUnit::Repository {
method path-spec() {
'nqp#'
}

multi method gist(CompUnit::Repository::NQP:D:) {
self.path-spec
}
}

# vim: ft=perl6 expandtab sw=4
4 changes: 4 additions & 0 deletions src/core/CompUnit/Repository/Perl5.pm6
Expand Up @@ -46,6 +46,10 @@ class CompUnit::Repository::Perl5 does CompUnit::Repository {
method path-spec() {
'perl5#'
}

multi method gist(CompUnit::Repository::Perl5:D:) {
self.path-spec
}
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 8f3237c

Please sign in to comment.