role Metamodel::Naming

Metaobject that supports named types
role Metamodel::Naming { }

Warning: this role is part of the Rakudo implementation, and is not a part of the language specification.

Metamodel role for (optionally) named things, like classes, roles and enums.

Methods

method name

method name($type)

Returns the name of the metaobject, if any.

say 42.^name;       # OUTPUT: «Int␤»

method set_name

method set_name($type, $new_name)

Sets the new name of the metaobject.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.