-
-
06 Jul 2016 22:11:23 UTC
- Distribution: Mo
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (12)
- Testers (8988 / 7 / 0)
- Kwalitee
Bus factor: 2- 93.85% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (39.19KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- none
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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 ); Foo->new->first('1')->second('2');
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.
Module Install Instructions
To install Mo, copy and paste the appropriate command in to your terminal.
cpanm Mo
perl -MCPAN -e shell install Mo
For more information on module installation, please visit the detailed CPAN module installation guide.