Skip to content

Commit 88ef45e

Browse files
committed
1 parent e345771 commit 88ef45e

14 files changed

+121
-0
lines changed

doc/Type/Blob.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ Returns C<False> if and only if the buffer is empty.
3434
$blob = Blob.new([1, 2, 3]);
3535
say $blob.Bool; # OUTPUT: «True␤»
3636
37+
=head2 method Capture
38+
39+
Defined as:
40+
41+
method Capture(Blob:D --> Capture:D)
42+
43+
Equivalent to calling L«C<.List.Capture>|/type/List#method_Capture»
44+
on the invocant.
45+
3746
=head2 method elems
3847
3948
Defined as:

doc/Type/Callable.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ container, is has to implement Callable.
4040
my &a = A;
4141
say a(); # OUTPUT: «called␤»
4242
43+
=head2 method Capture
44+
45+
Defined as:
46+
47+
method Capture()
48+
49+
Throws C<X::Cannot::Capture>.
50+
4351
=head2 method assuming
4452
4553
method assuming(Callable:D $self: |primers)

doc/Type/Channel.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ been closed or C<.fail> has already been called on it.
157157
CATCH { default { put .^name, ': ', .Str } };
158158
# OUTPUT: «X::AdHoc: Bad error happens!␤»
159159
160+
=head2 method Capture
161+
162+
Defined as:
163+
164+
method Capture(Channel:D --> Capture:D)
165+
166+
Equivalent to calling L«C<.List.Capture>|/type/List#method_Capture»
167+
on the invocant.
168+
160169
=head2 method Supply
161170
162171
Defined as:

doc/Type/ComplexStr.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ directly the values can be whatever is required:
3636
say +$f; # OUTPUT: «42+0i␤»
3737
say ~$f; # OUTPUT: «"forty two (but complicated)"␤»
3838
39+
=head2 method Capture
40+
41+
Defined as:
42+
43+
method Capture(ComplexStr:D --> Capture:D)
44+
45+
Equivalent to L«C<Mu.Capture>|/type/Mu#method_Capture».
46+
3947
=head2 method Numeric
4048
4149
method Numeric

doc/Type/Failure.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ Returns C<False>, and marks the failure as handled.
108108
# OUTPUT: «False␤
109109
# True␤»
110110
111+
=head2 method Capture
112+
113+
Defined as:
114+
115+
method Capture()
116+
117+
Throws C<X::Cannot::Capture> if the invocant is a type object or a L<handled>
118+
L<Failure>. Otherwise, throws the invocant's L<exception>.
119+
111120
=head2 method defined
112121
113122
Defined as:

doc/Type/Int.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ These notations allow you to use variables, too:
4343
4444
=head1 Methods
4545
46+
=head2 method Capture
47+
48+
Defined as:
49+
50+
method Capture()
51+
52+
Throws C<X::Cannot::Capture>.
53+
4654
=head2 routine chr
4755
4856
Defined as:

doc/Type/Num.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ Seeds the pseudo random number generator used by L<Num.rand|/type/Num#rand> with
7373
the provided value. Note that C<srand> is called with a platform dependent
7474
value when a Perl 6 program is started.
7575
76+
=head2 method Capture
77+
78+
Defined as:
79+
80+
method Capture()
81+
82+
Throws C<X::Cannot::Capture>.
83+
7684
=head2 Int
7785
7886
method Int(Num:D:)

doc/Type/Range.pod6

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,17 @@ results.
228228
say ('a'..'d').reverse; # OUTPUT: «(d c b a)␤»
229229
say (1..Inf).reverse; # OUTPUT: «(Inf Inf Inf ...)␤»
230230
231+
=head2 method Capture
232+
233+
Defined as:
234+
235+
method Capture(Range --> Capture:D)
236+
237+
Returns a L<Capture> with values of L«C<.min>|/type/Range#method_min»
238+
L«C<.max>|/type/Range#method_max»,
239+
L«C<.excludes-min>|/type/Range#method_excludes-min»,
240+
L«C<.excludes-max>|/type/Range#method_excludes-max»,
241+
L«C<.infinite>|/type/Range#method_infinite», and
242+
L«C<.is-int>|/type/Range#method_is-int» as named arguments.
243+
231244
=end pod

doc/Type/RatStr.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ directly the values can be whatever is required:
3535
say +$f; # OUTPUT: «42.1␤»
3636
say ~$f; # OUTPUT: «"forty two and a bit"␤»
3737
38+
=head2 method Capture
39+
40+
Defined as:
41+
42+
method Capture(RatStr:D --> Capture:D)
43+
44+
Equivalent to L«C<Mu.Capture>|/type/Mu#method_Capture».
45+
3846
=head2 method Numeric
3947
4048
method Numeric

doc/Type/Signature.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,4 +768,12 @@ be accepted by the C<Signature>.
768768
:($a, $b) ~~ :($foo, $bar, $baz?); # RESULT: «True»
769769
:(Int $n) ~~ :(Str); # RESULT: «False»
770770
771+
=head2 method Capture
772+
773+
Defined as:
774+
775+
method Capture()
776+
777+
Throws C<X::Cannot::Capture>.
778+
771779
=end pod

0 commit comments

Comments
 (0)