Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created June 24, 2014 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoelzro/fb11cf2962b010080533 to your computer and use it in GitHub Desktop.
Save hoelzro/fb11cf2962b010080533 to your computer and use it in GitHub Desktop.
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