package DX::Observer::FromCode;

use Moo;

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

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

1;
