package HTML::FormFu::Role::HasParent;
{
  $HTML::FormFu::Role::HasParent::VERSION = '1.00';
}
use Moose::Role;

sub BUILD {
    my ( $self, $args ) = @_;

    # Moose's new() only handles attributes - not methods

    if ( exists $args->{parent} ) {
        $self->parent( delete $args->{parent} );
    }

    return;
}

1;
