Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we can do .Str/gist/perl on type objects
  • Loading branch information
lizmat committed Jun 17, 2014
1 parent 354c5c5 commit 5007abc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/core/CompUnitRepo/Locally.pm
Expand Up @@ -18,9 +18,15 @@ role CompUnitRepo::Locally {
self
}

method Str { $!path.Str }
method gist { "{self.short-id}:{$!path.Str}" }
method perl { "CompUnitRepo.new('{self.short-id}:{$!path.Str}')" }
method Str { self.DEFINITE ?? $!path.Str !! Nil }
method gist { self.DEFINITE
?? "{self.short-id}:{$!path.Str}"
!! self.^name;
}
method perl { self.DEFINITE
?? "CompUnitRepo.new('{self.short-id}:{$!path.Str}')"
!! self.^name;
}

# stubs
method install($source, $from?) { ... }
Expand Down

0 comments on commit 5007abc

Please sign in to comment.