in reply to Re^2: Inheritance when subclass passed as a parameter
in thread [Solved] Inheritance when subclass passed as a parameter

I thought I replied to this yesterday, but I guess I did the thing where I preview a post and then forgot to actually post it.

Anyway, the Service class is usable in its own right, so it makes sense to keep it as a class, not a role.

my $text = Service->new( template => "[data]\n", data => 'foo' );