- COPYRIGHT AND LICENSE
mop::traits::util - some utility functions for inspecting traits
Since traits are simply subroutines that operate on meta-objects it is not possible to inspect the meta-object to find out what specific traits have been applied to it. This module aims to fix that issue.
NOTE: This feature will likely become more sophisticated over time and provide better introspection capabilities. What is here now is just the beginning.
apply_trait($trait, $meta, @args)
$trait as a CODE ref, the
$meta object it is to be applied too, and any
@args, this will perform the trait application as well as registering this action.
$meta object this will return the list of trait CODE refs that were applied to it.
Since this module is still under development we would prefer to not use the RT bug queue and instead use the built in issue tracker on Github.
Stevan Little <firstname.lastname@example.org>
Jesse Luehrs <email@example.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.