Browse files

[Parameter] explain how to obtain an Parameter object; link to Signature

  • Loading branch information...
1 parent d57507b commit 7c9ae895f2cb7bdef1fd0cdb51db9aab8d0121fc @moritz moritz committed Aug 22, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Parameter.pod
View
10 lib/Parameter.pod
@@ -6,6 +6,16 @@
Represents a parameter, for purpose of introspection.
+The usual way to obtain a Parameter object is to create a signature,
+and call C<.params> on it to obtain a list of the Parameters.
+
+ my $sig = :(Str $x);
+ my $param = $sig.params[0];
+ say $sig.type; # Str()
+
+See L<Signature> for more information, and also for an explanation
+on what most of the concepts related to parameters mean.
+
=head1 Methods
=head2 name

0 comments on commit 7c9ae89

Please sign in to comment.