HTML::FormFu::Constraint::MinRange - Minimum Value Constraint


HTML-FormFu documentation Contained in the HTML-FormFu distribution.

Index


Code Index:

NAME

Top

HTML::FormFu::Constraint::MinRange - Minimum Value Constraint

DESCRIPTION

Top

Checks the input value is equal to or greater than a minimum value.

Overrides localize_args in HTML::FormFu::Constraint, so that the value of minimum is passed as an argument to localize.

This constraint doesn't honour the not() value.

METHODS

Top

minimum

min

The minimum input value.

min is an alias for minimum.

SEE ALSO

Top

Is a sub-class of, and inherits methods from HTML::FormFu::Constraint::Range, HTML::FormFu::Constraint

HTML::FormFu

AUTHOR

Top

Carl Franks cfranks@cpan.org

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


HTML-FormFu documentation Contained in the HTML-FormFu distribution.

package HTML::FormFu::Constraint::MinRange;

use Moose;
extends 'HTML::FormFu::Constraint::Range';

sub _localize_args {
    my ($self) = @_;

    return $self->min;
}

__PACKAGE__->meta->make_immutable;

1;

__END__