NAME

Catmandu::Fix::Has - helper class for creating Fix-es with (optional) parameters

SYNOPSIS

package Catmandu::Fix::foo;
use Moo;
use Catmandu::Fix::Has;

has greeting => (fix_arg => 1);   # required parameter 1
has message  => (fix_arg => 1);   # required parameter 2
has eol      => (fix_opt => '!'); # optional parameter 'eol' with default '!'

sub fix {
    my ($self,$data) = @_;

    print STDERR $self->greeting . ", " . $self->message . $self->eol . "\n";

    $data;
}

1;

SEE ALSO

Catmandu::Fix