Created
June 24, 2014 14:47
-
-
Save hoelzro/fb11cf2962b010080533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
class Foo { | |
method bar(Str :$name) { | |
} | |
} | |
sub foo(Str :$name) { | |
} | |
say 'Foo.bar params:'; | |
say " $_.gist()" for Foo.can('bar')[0].signature.params; | |
say 'foo params:'; | |
say " $_.gist()" for &foo.signature.params; | |
#`( | |
Output: | |
Foo.bar params: | |
Foo | |
Str :name($name) | |
*%_ | |
foo params: | |
Str :name($name) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment