1 package DX::Role::SimpleAction;
5 with 'DX::Role::Action';
7 has target_path => (is => 'ro', required => 1, isa => ValuePath);
9 has _updates => (is => 'lazy', isa => ArrayRef[Update]);
11 requires '_build__updates';
16 [ symbol => (split('::',ref($self)))[-1] ],
17 [ value_path => $self->target_path ],
23 my ($self, $hyp) = @_;
24 my ($scope, @events) = $hyp->scope->apply_updates(@{$self->_updates});
28 actions => [ @{$hyp->actions}, $self ],
29 action_applications => [ @{$hyp->action_applications}, $self ],
35 sub run { shift->updates }