GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


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( "!
" );

         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



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.087 seconds. Last modified: November 04 2018 12:49:43.