In X::IO::Link§
See primary documentation in context for method name
Returns the name of the link that could not be created.
In Attribute§
See primary documentation in context for method name
method name(Attribute: --> Str)
Returns the name of the attribute. Note that this is always the private name, so if an attribute is declared as has $.a
, the name returned is $!a
.
my = Foo.^attributes(:local)[0];say .name; # OUTPUT: «@!bar»
In Label§
See primary documentation in context for method name
Not terribly useful, returns the name of the defined label:
A: while True
In X::Attribute::NoPackage§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the attribute
In Scalar§
See primary documentation in context for method name
method name(Scalar: --> Str)
Returns the name associated with the container.
Example:
my = 42;say .VAR.name; # OUTPUT: «$x»
In Variable§
See primary documentation in context for method name
method name(Variable: str)
Returns the name of the variable, including the sigil.
In X::Bind::NativeType§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the variable.
In Routine§
See primary documentation in context for method name
method name(Routine: --> Str)
Returns the name of the sub or method.
In X::Attribute::Package§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the attribute that triggered this error.
In Thread§
See primary documentation in context for method name
method name(Thread: --> Str)
Returns the user defined string, which can optionally be set during object creation in order to identify the Thread
, or '<anon>'
if no such string was specified.
my = Thread.new(code => );my = Thread.new(code => , name => 'my thread');say .name; # OUTPUT: «<anon>»say .name; # OUTPUT: «my thread»
In Metamodel::DefiniteHOW§
See primary documentation in context for method name
method name()
Returns the name of a definite type.
In X::Signature::NameClash§
See primary documentation in context for method name
method name(--> Str)
Returns the name that was used for more than one parameter.
In role Systemic§
See primary documentation in context for method name
Instance method returning the name of the object.
In Parameter§
See primary documentation in context for method name
method name(Parameter: --> Str)
Returns the parameter name, which includes all sigils and twigils. This name is used internally when applied to code, or in a declaration to determine the declared the name. This name is not necessarily usable by a caller – if it is, it will also appear as an alias. Often, the name will be chosen descriptively as a form of self-documentation.
If the parameter is anonymous, an empty string will be returned.
Note: Before Rakudo version 2020.08 the return value for an anonymous parameter was Nil
.
my Signature = :(Str , Bool);say .params[0].name; # OUTPUT: «$x»say .params[1].name; # OUTPUT: «»
In X::Attribute::Required§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the attribute.
In Pod::Block::Named§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the block.
In X::Dynamic::NotFound§
See primary documentation in context for method name
method name(--> Str)
Returns the name of the variable that has not been found.
In X::IO::Symlink§
See primary documentation in context for method name
Returns the path that symlink failed to create.
In role Encoding§
See primary documentation in context for method name
method name(--> Str)
Abstract method that would return the primary name of the encoding.
In ForeignCode§
See primary documentation in context for method name
method name()
Returns the name of the enclosed code, or <anon>
if it has not received any.
In Encoding::Registry§
See primary documentation in context for method name
method register(Encoding --> Nil)
Register a new Encoding
.
In role Metamodel::Naming§
See primary documentation in context for method name
method name()
Returns the name of the metaobject, if any.
say 42.^name; # OUTPUT: «Int»