aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-MooX-Traits/pkg-descr
blob: 0290c961e8a7b0af0107a0f935441e6633c5363d (plain) (blame)
1
2
3
4
5
Often you want to create components that can be added to a class arbitrarily.
This module makes it easy for the end user to use these components. Instead
of requiring the user to create a named class with the desired roles applied,
or apply roles to the instance one-by-one, he can just create a new class
from yours with with_traits, and then instantiate that.