Type
NAME
Doc::Type - Used to represent different types in a typegraph
SYNOPSIS
use Doc::Type;
# create and name it
my $type = Doc::Type.new(:name("Rat"));
# add some properties
$type.super.push(["Any", "Mu", "Numeric"]);
$type.roles.push(["Role1", "Role2"]);
# and get its MRO!
say $type.mro;
DESCRIPTION
Doc::Type
represents a type in the Raku language. It stores
its parent classes and the role it's implementing. In addition, it also
stores the inverted relation, that's to say: all types inheriting from
this one, and if it's a role, all types implementing it.
AUTHOR
Moritz Lenz <@moritz> Antonio Gámiz <@antoniogamiz>
COPYRIGHT AND LICENSE
This module has been spun off from the official Raku documentation repository, check it out for past history of this code..
Copyright 2019 Moritz and Antonio Gámiz. This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.