Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Type files as per 1dfd619
  • Loading branch information
Mouq committed Jun 17, 2014
1 parent 1dfd619 commit 9429392
Show file tree
Hide file tree
Showing 108 changed files with 397 additions and 397 deletions.
10 changes: 5 additions & 5 deletions lib/Type/Any.pod
Expand Up @@ -10,25 +10,25 @@ most built-in classes.
=head1 Methods
=head2 ACCEPTS
=head2 method ACCEPTS
multi method ACCEPTS(Any:D: Mu $other)
Returns C<True> if C<$other === self> (i.e. it checks object identity).
=head2 any
=head2 method any
Interprets the invocant as a list and creates an C<any>-Junction from it.
=head2 all
=head2 method all
Interprets the invocant as a list and creates an C<all>-Junction from it.
=head2 one
=head2 method one
Interprets the invocant as a list and creates an C<one>-Junction from it.
=head2 none
=head2 method none
Interprets the invocant as a list and creates an C<none>-Junction from it.
Expand Down
12 changes: 6 additions & 6 deletions lib/Type/Attribute.pod
Expand Up @@ -30,33 +30,33 @@ The usual way to obtain an object of type C<Attribute> is by introspection:
=head1 Methods
=head2 name
=head2 method name
method name(Attribute:D:) returns Str:D
Returns the name of the attribute. Note that this is always the private name,
so if an attribute is declared as C<has $.a>, the name returned is C<$!a>.
=head2 package
=head2 method package
method package(Attribute:D:) returns Mu:U
Returns the package (class/grammar/role) to which this attribute belongs.
=head2 has-accessor
=head2 method has-accessor
method has-accessor(Attribute:D:) returns Bool:D
Returns C<True> if the attribute has a public accessor method.
=head2 readonly
=head2 method readonly
method readonly(Attribute:D:) returns Bool:D
Returns C<True> for readonly attributes, which is the default.
Returns C<False> for attributes marked as C<is rw>.
=head2 get_value
=head2 method get_value
method get_value(Attribute:D: Mu $instance)
Expand All @@ -65,7 +65,7 @@ Returns the value stored in this attribute of object C<$instance>.
Note that this method violates encapsulation of the object, and should be
used with care. Here be dragons.
=head2 set_value
=head2 method set_value
method set_value(Attribute:D: Mu $instance, Mu \new_val)
Expand Down
6 changes: 3 additions & 3 deletions lib/Type/Backtrace.pod
Expand Up @@ -13,23 +13,23 @@ example routines like C<&die> are hidden by default.
=head1 Methods
=head2 new
=head2 method new
proto method new(*@, *%) {*}
multi method new()
Creates a new backtrace, using its calling location as the origin of the
backtrace.
=head2 Str
=head2 method Str
multi method Str(Backtrace:D:) returns Str:D:
Returns a concise string representation of the backtrace, omitting
routines marked as C<is hidden_from_backtrace>, and at the discretion of
the implementor, also some routines from the setting.
=head2 full
=head2 method full
multi method full(Backtrace:D:) returns Str:D:
Expand Down
14 changes: 7 additions & 7 deletions lib/Type/Backtrace/Frame.pod
Expand Up @@ -8,45 +8,45 @@ A single backtrace frame. It identifies a location in the source code.
=head1 Methods
=head2 file
=head2 method file
method file(Backtrace::Frame:D) returns Str
Returns the file name.
=head2 line
=head2 method line
method line(Backtrace::Frame:D) returns Int
Returns the line number (line numbers start to count from 1).
=head2 code
=head2 method code
method code(Backtrace::Frame:D)
Returns the code object into which C<.file> and C<.line> point, if avaialble.
=head2 subname
=head2 method subname
method subname(Backtrace::Frame:D) returns Str
Returns the name of the enclosing subroutine.
=head2 is-hidden
=head2 method is-hidden
method is-hidden(Backtrace::Frame:D) return Bool:D
Returns C<True> if the frame is marked as hidden with the
C<is hidden_from_backtrace> trait.
=head2 is-routine
=head2 method is-routine
method is-routine(Backtrace::Frame:D) return Bool:D
Return C<True> if the frame point into a routine (and not
into a mere L<Block>).
=head2 is-setting
=head2 method is-setting
method is-setting(Backtrace::Frame:D) return Bool:D
Expand Down
2 changes: 1 addition & 1 deletion lib/Type/Bag.pod
Expand Up @@ -12,7 +12,7 @@ mutable collection of weighted values, see L<BagHash>.
=head1 Operators
=head2 bag
=head2 sub bag
sub bag(*@args --> Bag)
Expand Down
28 changes: 14 additions & 14 deletions lib/Type/Baggy.pod
Expand Up @@ -9,32 +9,32 @@ L<Mixy>.
=head1 Methods
=head2 grab
=head2 method grab
=head2 grabpairs
=head2 method grabpairs
=head2 pick
=head2 method pick
=head2 pickpairs
=head2 method pickpairs
=head2 roll
=head2 method roll
=head2 classify-list
=head2 method classify-list
=head2 categorize-list
=head2 method categorize-list
=head2 keys
=head2 method keys
=head2 values
=head2 method values
=head2 kv
=head2 method kv
=head2 elems
=head2 method elems
=head2 total
=head2 method total
=head2 new-fp
=head2 method new-fp
=head2 ACCEPTS
=head2 method ACCEPTS
=end pod
10 changes: 5 additions & 5 deletions lib/Type/Buf.pod
Expand Up @@ -13,31 +13,31 @@ for example indexing into a C<Buf> with C<.[$idx]> returns an C<Int>.
=head1 Methods
=head2 new
=head2 method new
method new(*@codes)
Creates a C<Buf> from a list of integers.
=head2 Bool
=head2 method Bool
multi method Bool(Buf:D:)
Returns C<False> if and only if the buffer is empty.
=head2 elems
=head2 method elems
multi method elems(Buf:D:) returns Int:D
Returns the number of elements of the buffer.
=head2 decode
=head2 method decode
multi method decode(Buf:D: Str:D $encoding = 'UTF-8') returns Str:D
Applies an encoding to turn the buffer into a C<Str>.
=head2 subbuf
=head2 method subbuf
method subbuf(Int $from, Int $len = self.elems) returns Buf:D
Expand Down
6 changes: 3 additions & 3 deletions lib/Type/Capture.pod
Expand Up @@ -24,19 +24,19 @@ into that parameter.
=head1 Methods
=head2 list
=head2 method list
method list(Capture:D:) returns Positional
Returns the positional part of the Capture.
=head2 hash
=head2 method hash
method hash(Capture:D:) returns Associative
Returns the named/hash part of the Capture.
=head2 elems
=head2 method elems
method elems(Capture:D:) returns Int:D
Expand Down
10 changes: 5 additions & 5 deletions lib/Type/Code.pod
Expand Up @@ -12,7 +12,7 @@ from blocks, subroutines or methods) will be of some subclass of C<Code>.
=head1 Methods
=head2 ACCEPTS
=head2 method ACCEPTS
multi method ACCEPTS(Code:D: Mu $topic)
Expand All @@ -21,7 +21,7 @@ However, when called on a code object that takes no arguments, the code
object is invoked with no arguments and C<$topic> is dropped. The
result of the call is returned.
=head2 arity
=head2 method arity
method arity(Code:D:) returns Int:D
Expand All @@ -36,7 +36,7 @@ code object's C<Signature> do not contribute, nor do named parameters.
say &args.arity; # 1
say &slurpy.arity; # 2
=head2 count
=head2 method count
method count(Code:D:) returns Real:D
Expand All @@ -52,14 +52,14 @@ C<count> will return C<Inf>. Named parameters do not contribute.
say &args.count; # 2
say &slurpy.count; # Inf
=head2 signature
=head2 method signature
multi method signature(Code:D:) returns Signature:D
Returns the C<Signature> object for this code object, which describes
its parameters.
=head2 Str
=head2 method Str
multi method Str(Code:D:) returns Str:D
Expand Down
10 changes: 5 additions & 5 deletions lib/Type/Complex.pod
Expand Up @@ -15,32 +15,32 @@ Adding a trailing C<i> to a number literal makes it a Complex, for example:
=head1 Methods
=head2 new
=head2 method new
proto method new(*@, *%) {*} returns Complex:D
multi method new(Real $re, Real $im) returns Complex:D
Creates a new C<Complex> object from real and imaginary parts.
=head2 re
=head2 method re
method re(Complex:D:) returns Real:D
Returns the real part of the complex number.
=head2 im
=head2 method im
method im(Complex:D:) returns Real:D
Returns the imaginary part of the complex number.
=head2 isNaN
=head2 method isNaN
method isNaN(Complex:D:) returns Bool:D
Returns true if the real or imaginary part is C<NaN> (not a number).
=head2 polar
=head2 method polar
method polar(Complex:D:) returns Positional:D
Expand Down

0 comments on commit 9429392

Please sign in to comment.