NAME
Fennec::Util::Accessors - Quick and dirty read-write accessor generator
DESCRIPTION
Provides a function that lets you quickyl generate basic read-write accessors. Assumes your object is a blessed hash.
SYNOPSIS
package MyPackage;
use Fennec::Util::Accessors;
Accessors qw/ thing stuff foo bar /;
...
1;
EXPORTS
- Accessors( @list )
-
Add basic read/write accessors to the calling class. Each item in @list will be assumed to be the name of the accessor.
API (CLASS METHODS)
- build_accessors( $package, @list )
-
Adds accessors in list() to $package.
- import()
-
Imports 'Accessors' into the callers namespace.
- alias()
-
Used by Fennec::Util::Alias so that when using this package aliased the Accessors function behaves properly.
MANUAL
- Fennec::Manual::Quickstart
-
The quick guide to using Fennec.
- Fennec::Manual::User
-
The extended guide to using Fennec.
- Fennec::Manual::Developer
-
The guide to developing and extending Fennec.
- Fennec::Manual
-
Documentation guide.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Fennec is free software; Standard perl licence.
Fennec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.