Implemented Moose::Util::MetaRole, which lets you apply roles to any
authorDave Rolsky <autarch@urth.org>
Mon, 25 Aug 2008 15:27:43 +0000 (15:27 +0000)
committerDave Rolsky <autarch@urth.org>
Mon, 25 Aug 2008 15:27:43 +0000 (15:27 +0000)
commit231be3be4e3dd7aaae3cee7f04efeec6eecde236
tree47cd929c0d02174c27516dced1c9241e504ea71b
parentd3972865c71f36984a9e056f40e195ca56b5b302
Implemented Moose::Util::MetaRole, which lets you apply roles to any
meta class, as well as the constructor & destructor classes and the
object base class.

To make this work properly, I had to make constructor & destructor
class attributes of Moose::Meta::Class, rather than just hardcoding
them.
lib/Moose/Meta/Class.pm
lib/Moose/Util/MetaRole.pm [new file with mode: 0644]
t/050_metaclasses/015_metarole.t [new file with mode: 0644]
t/050_metaclasses/016_metarole_w_metaclass_pm.t [new file with mode: 0644]