View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Tina Müller > Mo > Mo::chain



Annotate this POD


View/Report Bugs
Module Version: 0.40   Source  

Name ^

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

Synopsis ^

    package Foo;

    use Mo qw'chain';
    has first  => ( chain => 1 );
    has second => ( chain => 1 );


Description ^

Adds the chain parameter to has. If you set it to a true value, the accessor will return the class instance if values are set, instead of the value itself. As a result, accessors can be chained.

syntax highlighting: