txt: ## naming.md
  role Metamodel::Naming
  
  Metaobject that supports named types
  
  ```raku
  role Metamodel::Naming { }
  ```
  
  *Warning*: this role is part of the Rakudo implementation, and is not a part of the language specification.
  
  [Metamodel](/language/mop) role for (optionally) named things, like classes, roles and enums.
  
  # [Methods](#role_Metamodel::Naming "go to top of document")[§](#Methods "direct link")
  
  ## [method name](#role_Metamodel::Naming "go to top of document")[§](#method_name "direct link")
  
  ```raku
  method name($type)
  ```
  
  Returns the name of the metaobject, if any.
  
  ```raku
  say 42.^name;       # OUTPUT: «Int␤»
  ```
  
  ## [method set\_name](#role_Metamodel::Naming "go to top of document")[§](#method_set_name "direct link")
  
  ```raku
  method set_name($type, $new_name)
  ```
  
  Sets the new name of the metaobject.
  