Skip to content

Commit

Permalink
Document Mu.Capture
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed May 24, 2017
1 parent 60a1d89 commit c798ff6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/Type/Mu.pod6
Expand Up @@ -87,6 +87,21 @@ empty L<string|/type/Str> or numerical zeros
say 1.Bool; # OUTPUT: «True␤»
say "0".Bool; # OUTPUT: «True␤»
=head2 method Capture
Defined as:
method Capture(Mu:D: --> Capture:D)
Returns a L<Capture> with named arguments corresponding to invocant's
public attributes:
class Foo {
has $.foo = 42;
has $.bar = 70;
method bar { 'something else' }
}.new.Capture.say; # OUTPUT: «\(:bar("something else"), :foo(42))␤»
=head2 method Str
multi method Str(--> Str)
Expand Down

0 comments on commit c798ff6

Please sign in to comment.