introduce next_step method to rspace
[scpubgit/DX.git] / lib / DX / Role / Predicate.pm
CommitLineData
9d759b64 1package DX::Role::Predicate;
2
3use List::Util qw(reduce);
3e465d5d 4use DX::Utils qw(step CONTENTS_OF);
9d759b64 5use DX::Role;
6
7sub resolution_step_for {
ccf0d4fe 8 my ($self, $prop, @args) = @_;
0c1b8f3b 9 $self->_resolution_space_for(@args)
10 ->but(proposition => $prop)
11 ->next_step;
9d759b64 12}
13
9d759b64 141;