I would like to use MooseX::ClassAttribute in a role. I.e., do something like
package Cachable;
use Moose::Role;
use MooseX::ClassAttribute;
class_has Cache => ( is => 'rw' );
1;
Unfortunately, the code above doesn't work as
the deep magic of MooseX::ClassAttribute expects
to be called from within a Moose object, and not a Moose::Role.
Is there any way to work around this, or is this a known limitation?