Skip to content

Commit

Permalink
document Method
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 25, 2012
1 parent 007159d commit 106a1f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Method.pod
@@ -0,0 +1,14 @@
=begin pod
=TITLE class Method
class Method is Routine { }
A type for methods. To create a method, use the C<method> keyword:
my $m = method ($invocant: $param) {
say "$invocant: '$param'";
}
"greeting".$m("hello"); # greeting: 'hello'
=end pod

0 comments on commit 106a1f7

Please sign in to comment.