Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Introspection of .returns/.of on Routine.
  • Loading branch information
jnthn committed Jul 9, 2011
1 parent 6b6bc4e commit 1fa3334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Routine.pm
@@ -1,2 +1,4 @@
my class Routine {
method of() { self.signature.returns }
method returns() { self.signature.returns }
}
2 changes: 2 additions & 0 deletions src/core/Signature.pm
Expand Up @@ -54,4 +54,6 @@ my class Signature {
# Closer.
$perl ~ ')'
}

method returns() { $!returns }
}

0 comments on commit 1fa3334

Please sign in to comment.