method rw
Documentation for method rw
assembled from the following types:
class Attribute
From Attribute
(Attribute) method rw
Defined as:
method rw(Attribute: --> Bool)
Returns True
for attributes that have the "is rw" trait applied to them.
my = Library.^attributes(:local)[0];my = Library.^attributes(:local)[1];say .rw; # OUTPUT: «False»say .rw; # OUTPUT: «True»
class Parameter
From Parameter
(Parameter) method rw
Defined as:
method rw(Parameter: --> Bool)
Returns True
for is rw
parameters.
my Signature = :(Str is rw, Bool :);say .params[0].rw; # OUTPUT: «True»say .params[1].rw; # OUTPUT: «False»
role Metamodel::AttributeContainer
From Metamodel::AttributeContainer
(Metamodel::AttributeContainer) method rw
method rw(Metamodel::AttributeContainer: )
Returns a true value if method set_rw has been called on this object, that is, if new public attributes are writable by default.
class IO::Path
From IO::Path
(IO::Path) method rw
Defined as:
method rw(--> Bool)
Returns True
if the invocant is a path that exists and is readable and writable. The method will fail
with X::IO::DoesNotExist
if the path points to a non-existent filesystem entity.