GX::Meta::Attribute::Array - Attribute metaclass
None.
This module provides the GX::Meta::Attribute::Array class which extends the GX::Meta::Attribute class.
new
Returns a new GX::Meta::Attribute::Array attribute metaobject.
$attribute = GX::Meta::Attribute::Array->new( %attributes );
default ( ARRAY reference )
default
ARRAY
See GX::Meta::Attribute. The supplied value must be a reference to an array.
initializer ( string | CODE reference )
initializer
CODE
See GX::Meta::Attribute. The initializer must return a reference to an array.
weaken ( bool )
weaken
A boolean flag indicating whether or not to weaken the stored attribute values. Defaults to false.
See GX::Meta::Attribute for more.
$attribute ( GX::Meta::Attribute::Array object )
$attribute
GX::Meta::Exception
See GX::Meta::Attribute.
This attribute class provides the following accessor types:
clear
$invocant->accessor;
@values = $invocant->accessor; @values = $invocant->accessor( @values ); $values = $invocant->accessor( ... );
get
$values = $invocant->accessor; @values = $invocant->accessor;
get_list
@values = $invocant->accessor;
get_reference
$values = $invocant->accessor;
set
$invocant->accessor( @values );
size
$size = $invocant->accessor;
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.