Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #42 from lumimies/nom
Fix gist/perl for Junction and Bool
  • Loading branch information
moritz committed Nov 24, 2011
2 parents e3246ea + 21c0409 commit d5d5a3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Bool.pm
Expand Up @@ -16,7 +16,7 @@ my class Bool {

multi method ACCEPTS(Bool:D: Mu \$topic) { self }

multi method gist(Bool:D:) { self ?? 'Bool::True' !! 'Bool::False' }
multi method perl(Bool:D:) { self ?? 'Bool::True' !! 'Bool::False' }
}


Expand Down
4 changes: 4 additions & 0 deletions src/core/Junction.pm
Expand Up @@ -38,6 +38,10 @@ my class Junction is Mu {

submethod BUILD(:$!storage, :$!type) { }

multi method gist(Junction:D:) {
$!type ~ '(' ~ $!storage.map({$_.gist}).join(', ') ~ ')'
}

multi method perl(Junction:D:) {
$!type ~ '(' ~ $!storage.map({$_.perl}).join(', ') ~ ')'
}
Expand Down

0 comments on commit d5d5a3f

Please sign in to comment.