GX::Meta::Attribute::Object - Attribute metaclass
None.
This module provides the GX::Meta::Attribute::Object class which extends the GX::Meta::Attribute::Scalar class.
new
Returns a new GX::Meta::Attribute::Object attribute metaobject.
$attribute = GX::Meta::Attribute::Object->new( %attributes );
default ( object | undef )
default
undef
See GX::Meta::Attribute. The supplied value must be a blessed reference or undef.
delegator ( string | HASH reference )
delegator
HASH
A method name or delegator definition.
delegators ( ARRAY reference )
delegators
ARRAY
A reference to an array containing method names and / or delegator definitions.
initializer ( string | CODE reference )
initializer
CODE
See GX::Meta::Attribute. The initializer must return a blessed reference or undef.
weaken ( bool )
weaken
A boolean flag indicating whether or not to weaken the stored reference. Defaults to false.
See GX::Meta::Attribute for more.
$attribute ( GX::Meta::Attribute::Object object )
$attribute
GX::Meta::Exception
Also see GX::Meta::Attribute.
add_delegator
Creates a new delegator metaobject for the attribute and adds it.
$delegator = $attribute->add_delegator( %arguments );
%arguments ( named list )
%arguments
Arguments to pass to the GX::Meta::Delegator constructor.
$delegator ( GX::Meta::Delegator object )
$delegator
Returns the associated delegator metaobjects.
@delegators = $attribute->delegators;
@delegators ( GX::Meta::Delegator objects )
@delegators
install_delegators
Installs the delegators.
$attribute->install_delegators;
See "Accessor Types" in GX::Meta::Attribute::Scalar.
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.