Moved most of Moose::Util::apply_all_roles to
authorDave Rolsky <autarch@urth.org>
Mon, 28 Jul 2008 13:19:10 +0000 (13:19 +0000)
committerDave Rolsky <autarch@urth.org>
Mon, 28 Jul 2008 13:19:10 +0000 (13:19 +0000)
commit0a6e4a3afc73b2709dc592f77f5ba5b0e8a21754
tree1ecfd551d75b5887f1595fc973f3e242c7e9eeb2
parentbd0339f4bdcccf0ff8e071876584b7668e7d5fb7
Moved most of Moose::Util::apply_all_roles to
apply_all_roles_with_method, to allow us to apply roles to a metaclass
instance easily.

Multiple metaclass traits are now applied as a composite role, just
like attribute traits.

Added tests for applying >1 metaclass trait.
lib/Moose.pm
lib/Moose/Util.pm
t/050_metaclasses/012_metaclass_traits.t