Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add .Str and .gist to CompUnitRepo::*
  • Loading branch information
FROGGS committed May 28, 2014
1 parent 2daea40 commit ca7121f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/core/CompUnitRepo/Local/File.pm
Expand Up @@ -5,10 +5,13 @@ class CompUnitRepo::Local::File {
}

method BUILD(:@location) {
@!paths = @location;
@!paths = @location>>.map(*.path);
self
}

method Str { @!paths.Str }
method gist { "CompUnitRepo::Local::File(" ~ @!paths.Str ~ ')' }

method install($source, $from?) {
...
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/CompUnitRepo/Local/Installation.pm
Expand Up @@ -46,7 +46,8 @@ class CompUnitRepo::Local::Installation {
}
}

method Str { $!path.absolute.Str }
method Str { $!path.Str }
method gist { "CompUnitRepo::Local::Installation(" ~ $!path.Str ~ ')' }

method writeable-path {
%!dists.keys.first( *.IO.w )
Expand Down

0 comments on commit ca7121f

Please sign in to comment.