lib/Moo/HandleMoose.pm: Possible work around for rt#84615
authorKent Fredric <kentfredric@gmail.com>
Tue, 23 Apr 2013 21:11:21 +0000 (09:11 +1200)
committerKent Fredric <kentfredric@gmail.com>
Tue, 23 Apr 2013 22:17:33 +0000 (10:17 +1200)
commitcafdfdf50113af01a5101300565437a35df8c4a2
tree751bf72ec293fbc29dfdc0fb82c2f2664769f8eb
parent1bc4b89be43066fb21ff89d9650f3821f8072e32
lib/Moo/HandleMoose.pm: Possible work around for rt#84615

If the constructor autovivification call returns 'undef', then the
package we're trying to get the contructor for, ( and from that, the
    constructor specs ), that package was not constructed via

  package;
  use Moo;

doesn't turn up in %Moo::MAKERS, and must either be either Moose::Object itself, or a simple child class of
that.

Therefore, assume it has no attributes, and inflate a minimal
methods-only metaclass.
lib/Moo/HandleMoose.pm