MOP::Role - A representation of a role
version 0.07
A role is simply a package which may have methods, may have slot defintions, and may consume other roles.
new( name =
new( $package_name )
new( \%package_stash )
stash
name
version
authority
roles
set_roles( @roles )
does_role( $role )
all_slots
slots
has_slot( $name )
get_slot( $name )
add_slot( $name, &$initializer )
delete_slot( $name )
aliased_slots
alias_slot( $name, &$initializer )
has_slot_alias ( $name )
get_slot_alias ( $name )
delete_slot_alias ( $name )
required_methods
requires_method( $name )
has_required_method( $name )
get_required_method( $name )
add_required_method( $name )
delete_required_method( $name )
all_methods
methods
has_method( $name )
get_method( $name )
add_method( $name, &$code )
delete_method( $name )
aliased_methods
alias_method( $name, &$code )
has_method_alias( $name )
get_method_alias( $name )
delete_method_alias( $name )
Stevan Little <stevan@cpan.org>
This software is copyright (c) 2017 by Stevan Little.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MOP
CPAN shell
perl -MCPAN -e shell install MOP
For more information on module installation, please visit the detailed CPAN module installation guide.