GX::Meta::Accessor - Accessor metaclass
None.
This module provides the GX::Meta::Accessor class.
new
Returns a new GX::Meta::Accessor metaobject.
$accessor = GX::Meta::Accessor->new( %attributes );
attribute ( GX::Meta::Attribute object ) [ required ]
attribute
The associated attribute metaobject.
code ( CODE reference ) [ required ]
code
CODE
A reference to the accessor subroutine.
name ( string ) [ required ]
name
The name of the accessor method.
type ( string )
type
A string identifying the accessor type, for example "get" or "set".
$accessor ( GX::Meta::Accessor object )
$accessor
GX::Meta::Exception
Returns the associated attribute metaobject.
$attribute = $accessor->attribute;
$attribute ( GX::Meta::Attribute object )
$attribute
Returns a reference to the accessor subroutine.
$code = $accessor->code;
$code ( CODE reference )
$code
Returns the name of the accessor method.
$name = $accessor->name;
$name ( string )
$name
Returns a string identifying the accessor type or undef if the type is unknown.
undef
$type = $accessor->type;
$type ( string | undef )
$type
GX::Meta
Jörg A. Uzarek <uzarek@runlevelnull.de>
Copyright (c) 2009-2011 Jörg A. Uzarek.
This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.
To install GX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GX
CPAN shell
perl -MCPAN -e shell install GX
For more information on module installation, please visit the detailed CPAN module installation guide.