method set_value
Documentation for method set_value
assembled from the following types:
class Attribute
From Attribute
(Attribute) method set_value
Defined as:
method set_value(Mu , Mu \new_val)
Binds the value new_val
to this attribute of object $obj
.
my = A.^attributes(:local)[0];my = A.new;.speak; # OUTPUT: «5».set_value(, 42);.speak; # OUTPUT: «42»
Note that this method violates encapsulation of the object, and should be used with care. Here be dragons.