Stevan Little > mop-0.03-TRIAL > mop::traits::util

Download:
mop-0.03-TRIAL.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

mop::traits::util - some utility functions for inspecting traits

DESCRIPTION ^

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.

FUNCTIONS ^

apply_trait($trait, $meta, @args)

Given a $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.

applied_traits($meta)

Given a $meta object this will return the list of trait CODE refs that were applied to it.

BUGS ^

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.

Git Repository

Issue Tracker

AUTHOR ^

Stevan Little <stevan.little@iinteractive.com>

Jesse Luehrs <doy@tozt.net>

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013-2014 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.

syntax highlighting: