beb15f878e0a9d38156b2361f33a89f3921305a2
[scpubgit/DKit.git] / lib / DX / Op / Materialize.pm
1 package DX::Op::Materialize;
2
3 use Moo;
4
5 with 'DX::Role::Op';
6
7 has var_name => (is => 'ro', required => 1);
8
9 sub run {
10   my ($self, $state) = @_;
11   $state->scope_var($self->var_name)->bound_value;
12   $state->then($self->next);
13 }
14
15 1;