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

FreeBSD Manual Pages

  
 
  

home | help
accessors::chained(3) User Contributed Perl Documentationaccessors::chained(3)

NAME
       accessors::chained - create method chaining accessors in	caller's
       package.

SYNOPSIS
	 package Foo;
	 use accessors::chained	qw( foo	bar baz	);

	 my $obj = bless {}, 'Foo';

	 # generates chaining accessors:
	 $obj->foo( 'hello ' )
	     ->bar( 'world' )
	     ->baz( "!\n" );

	 print $obj->foo, $obj->bar, $obj->baz;

DESCRIPTION
       The accessors::chained pragma lets you create simple method-chaining
       accessors at compile-time.

       This module exists for future backwards-compatability - if the default
       style of	accessor ever changes, method-chaining accessors will still be
       available through this pragma.

       See accessors for documentation.

AUTHOR
       Steve Purkis <spurkis@cpan.org>

SEE ALSO
       accessors, accessors::classic, base

perl v5.24.1			  2017-07-02		 accessors::chained(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=accessors::chained&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help