Role-Basic icon indicating copy to clipboard operation
Role-Basic copied to clipboard

Roles in Perl. Nothing else.

Results 3 Role-Basic issues
Sort by recently updated
recently updated
newest added

I wanted to run some initialization code for each role consumed when instantiating an object. The composition data is private to Role::Basic so I can't inherit from it to override....

Thanks for this module which allows Role support without the rest of Moose. Moose roles support attribute composition. However, I don't see the word ''attribute' mentioned in the docs or...

See https://gist.github.com/766303 - maybe that's just a 'role-antipattern', but I don't know of a better way to add capabilities to classes based on a configuration setting.