Moose::Meta::Class - The Moose metaclass |
Moose::Meta::Class - The Moose metaclass
This is a subclass of the Class::MOP::Class manpage with Moose specific extensions.
For the most part, the only time you will ever encounter an instance of this class is if you are doing some serious deep introspection. To really understand this class, you need to refer to the the Class::MOP::Class manpage documentation.
my $metaclass = Moose::Meta::Class->create( 'New::Class', roles => [...] );
my $metaclass = Moose::Meta::Class->create_anon_class( superclasses => ['Foo'], roles => [qw/Some Roles Go Here/], cache => 1, );
add_role
and memoize calculate_all_roles
trigger
attribute option.
This method makes sure to handle the moose weak-ref, type-constraint and type coercion features.
override
method modifier for you, and install
it in the package.
augment
method modifier for you, and install
it in the package.
Moose::Meta::Role
instances which are
attached to this class.
Moose::Meta::Role
in $role
, and adds it
to the list of associated roles.
does
a given $role_name
. It will
not only check it's local roles, but ask them as well in order to
cascade down the role hierarchy.
excludes
a given $role_name
. It will
not only check it's local roles, but ask them as well in order to
cascade down the role hierarchy.
$params
as a HASH ref.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Stevan Little <stevan@iinteractive.com>
Copyright 2006-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Moose::Meta::Class - The Moose metaclass |