Filewatcher File Search File Search
Catalog
Content Search
» » » » »

libaccessors-perl

Perl module to create accessor methods in caller's package

The accessors pragma lets you create simple accessors at compile-time.

This saves you from writing them by hand, which tends to result in cut-n-paste errors and a mess of duplicated code. It can also help you reduce the ammount of unwanted direct-variable access that may creep into your codebase when you're feeling lazy. accessors was designed with laziness in mind.

Method-chaining accessors are generated by default. Note that you can still use accessors::chained directly for reasons of backwards compatibility.

See accessors::classic for accessors that always return the current value if you don't like method chaining.

Homepage:
Package version:1.01-1
Architecture:all
Distribution:Debian
Filename:libaccessors-perl_1.01-1_all.deb

/usr/share/man/man3/accessors.3pm.gz

accessors(3pm)   User Contributed Perl Documentation  accessors(3pm)



NAME
       accessors - create accessor methods in caller's package.

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

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

         # generates chaining accessors
         # that you can set like this:
         $obj->foo( 'hello ' )
             ->bar( 'world' )
       
more»

/usr/share/man/man3/accessors::chained.3pm.gz

accessors::chaineUsermContributed Perl Documeaccessors::chained(3pm)



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' )
           
more»

/usr/share/man/man3/accessors::classic.3pm.gz

accessors::classiUsermContributed Perl Documeaccessors::classic(3pm)



NAME
       accessors::classic - create 'classic' read/write accessor
       methods in caller's package.

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

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

         # always return the current value, even on set:
         $obj->foo( 'hello ' ) if $obj->bar(
more»

/usr/share/man/man3/accessors::ro.3pm.gz

accessors::ro(3pmUser Contributed Perl Documentatiaccessors::ro(3pm)



NAME
       accessors::ro - 
more»

/usr/share/man/man3/accessors::rw.3pm.gz

accessors::rw(3pmUser Contributed Perl Documentatiaccessors::rw(3pm)



NAME
       accessors::rw - 
more»

/usr/share/doc/libaccessors-perl/changelog.Debian.gz

libaccessors-perl (1.01-1) unstable; urgency=low

  * Initial Release (Closes: #645233).

 -- Salvat
more»

/usr/share/doc/libaccessors-perl/changelog.gz

Revision history for 'accessors' Perl pragma
--------------------------------------------

All chang
more»

/usr/share/doc/libaccessors-perl/copyright

Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=13
more»

Browse inside libaccessors-perl_1.01-1_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libaccessors-perl_1.01-1_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com