Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
Mo::chain(3)	      User Contributed Perl Documentation	  Mo::chain(3)

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

	   package Foo;

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


       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.

perl v5.32.0			  2016-07-06			  Mo::chain(3)

Name | Synopsis | Description

Want to link to this manual page? Use this URL:

home | help