Object-Proto-Sugar
view release on metacpan or search on metacpan
lib/Object/Proto/Sugar.pm view on Meta::CPAN
for my $mod_type (qw/before after around/) {
BEGIN::Lift::install(
($caller, $mod_type) => sub {
my ($name, $code) = @_;
push @modifiers, [$mod_type, $name, $code];
}
);
}
Devel::Hook->push_UNITCHECK_hook(sub {
my @spec_copy = @spec;
my (@func_names, $attr, $spec, %isa, @attributes);
while (@spec) {
($attr, $spec) = (shift @spec, shift @spec);
$attr = _configure_is($attr, $spec);
$attr = _configure_required($attr, $spec);
$attr = _configure_lazy($attr, $spec);
$attr = _configure_isa_and_coerce($attr, $spec, \%isa, $caller);
$attr = _configure_default_and_builder($attr, $spec, \%isa, $caller);
$attr = _configure_trigger($attr, $spec, \%isa, $caller);
( run in 2.222 seconds using v1.01-cache-2.11-cpan-9581c071862 )