Ingy döt Net > Mo-0.35 > Mo::required

Download:
Mo-0.35.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.35   Source   Latest Release: Mo-0.38

Name ^

Mo::required - Adds the required feature to Mo's has

Synopsis ^

    use Mo qw'required';
    has name => ( required => 1 );

Description ^

Adds the required parameter to has. When required is set to a positive value, the constructor will die if the attribute is not set.

syntax highlighting: