};
# most things will just want to set a value, so make it first arg
- $instance->$initializer($value, $callback);
+ $instance->$initializer($value, $slot_name, $callback);
}
sub initialize_slot {
reader => 'get_bar',
writer => 'set_bar',
initializer => sub {
- my ($self, $value, $callback) = @_;
+ my ($self, $value, $name, $callback) = @_;
$callback->($value * 2);
},
);