steps now operate on search states
[scpubgit/DX.git] / lib / DX / Step / InvokeNextPredicate.pm
CommitLineData
e647e417 1package DX::Step::InvokeNextPredicate;
2
3use DX::Class;
4
5with 'DX::Role::Step';
6
ccf0d4fe 7has proposition => (is => 'ro', required => 1);
8
e647e417 9sub apply_to {
110fd002 10 my ($self, $ss) = @_;
11 my $hyp = $ss->current_hypothesis;
ccf0d4fe 12 return (undef, $self->proposition->resolve_for($hyp->scope));
e647e417 13}
14
151;