Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Code.ACCEPTS
  • Loading branch information
jnthn committed Jun 14, 2011
1 parent 888d2f0 commit 22efa4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Code.pm
@@ -1,4 +1,8 @@
my class Code {
multi method ACCEPTS(Code:D $self: $topic) {
$self.count ?? $self($topic) !! $self()
}

method arity() { $!signature.arity }

method count() { $!signature.count }
Expand Down

0 comments on commit 22efa4f

Please sign in to comment.