package DX::Op::FromCode;

use Moo;

with 'DX::Role::Op';

has code => (is => 'ro', required => 1);

sub run {
  $_[0]->code->(@_);
}

1;
