use overload ();
use Moo;
+with 'Tak::Role::Service';
with 'Tak::Role::ObjectMangling';
has proxied => (is => 'ro', init_arg => undef, default => sub { {} });
$invocant->$method(@args);
}
1;
- } or return FAILURE => "$@";
- return RESULT => $self->encode_objects(\@res);
+ } or die [ failure => "$@" ];
+ return $self->encode_objects(\@res);
}
sub handle_remove_object {
my ($self, $tag) = @_;
my $had = !!delete $self->proxied->{$tag};
- return RESULT => $had;
+ return $had;
}
1;