In Attribute§
See primary documentation in context for method get value
method get_value(Mu )
Returns the value stored in this attribute of object $obj
.
my = Violated.^attributes(:local)[0];say .get_value(Violated.new); # OUTPUT: «5»
Note that this method violates encapsulation of the object, and should be used with care. Here be dragons.