1 package Method::Generate::BuildAll;
4 use base qw(Moo::Object);
10 my ($self, $into) = @_;
11 quote_sub "${into}::BUILDALL", join '',
12 qq{ my \$self = shift;\n},
13 $self->buildall_body_for($into, '$self', '@_'),
17 sub buildall_body_for {
18 my ($self, $into, $me, $args) = @_;
20 grep *{_getglob($_)}{CODE},
22 reverse @{mro::get_linear_isa($into)};
23 join '', map qq{ ${me}->${_}(${args});\n}, @builds;