allow blessed subs to be added as methods using add_method #28

Merged
merged 1 commit into from Aug 5, 2013

Conversation

Projects
None yet
2 participants
Owner

haarg commented Aug 5, 2013

You can add blessed subs directly to perl packages, but if you try to use the ->add_method interface, Moose assumes it is a method meta instance and use its API. This corrects Moose to only try that if it is actually blessed as a method meta object.

doy added a commit that referenced this pull request Aug 5, 2013

Merge pull request #28 from haarg/add-method-blessed
allow blessed subs to be added as methods using add_method

@doy doy merged commit 39690bc into moose:master Aug 5, 2013

1 check passed

default The Travis CI build passed
Details

@haarg haarg deleted the haarg:add-method-blessed branch Aug 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment