|
NameMo::chain - Adds the chain feature to Mo's hasSynopsispackage Foo; use Mo qw'chain'; has first => ( chain => 1 ); has second => ( chain => 1 ); Foo->new->first('1')->second('2'); DescriptionAdds 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.
Visit the GSP FreeBSD Man Page Interface. |