No more alias_method for roles either. This meant more or less copying
authorDave Rolsky <autarch@urth.org>
Thu, 11 Sep 2008 20:19:12 +0000 (20:19 +0000)
committerDave Rolsky <autarch@urth.org>
Thu, 11 Sep 2008 20:19:12 +0000 (20:19 +0000)
commit87e636262bb48cefaaa4f30504deec928fd38513
tree4bfe14fd2fa6e2fb2f81c391219af861555d4a77
parent9cde8a2fed5b88dac3d97c20f52d1e3da1aa02b3
No more alias_method for roles either. This meant more or less copying
the latest changes in CMOP::Class->add_method to Moose::Meta::Role.

Now roles add methods via add_method, which clones method objects as
needed. Added tests for this cloning and making sure we can track the
history of a method through any roles it's been in.
lib/Moose/Meta/Role.pm
lib/Moose/Meta/Role/Application/RoleSummation.pm
lib/Moose/Meta/Role/Application/ToClass.pm
lib/Moose/Meta/Role/Application/ToRole.pm
lib/Moose/Meta/Role/Composite.pm
t/030_roles/032_roles_and_method_cloning.t [new file with mode: 0644]