In role Systemic§
See primary documentation in context for method signature
Instance method returning the signature of the object. Returns a Blob
type object if the signature could not be established.
In Code§
See primary documentation in context for method signature
multi method signature(Code:D: --> Signature:D)
Returns the Signature
object for this code object, which describes its parameters.
sub a(Int $one, Str $two) {}; say &a.signature; # OUTPUT: «(Int $one, Str $two)»
In ForeignCode§
See primary documentation in context for method signature
method signature( ForeignCode:D: )
Returns the signature of the enclosed code.