GX::Meta::Attribute::Object

Module Version: 0.2000_01

NAME

GX::Meta::Attribute::Object - Attribute metaclass

SYNOPSIS

None.

DESCRIPTION

This module provides the GX::Meta::Attribute::Object class which extends the GX::Meta::Attribute::Scalar class.

METHODS

Constructor

new

Returns a new GX::Meta::Attribute::Object attribute metaobject.

$attribute = GX::Meta::Attribute::Object->new( %attributes );
Attributes:
  • default ( object | undef )

    See GX::Meta::Attribute. The supplied value must be a blessed reference or undef.

  • delegator ( string | HASH reference )

    A method name or delegator definition.

  • delegators ( ARRAY reference )

    A reference to an array containing method names and / or delegator definitions.

  • initializer ( string | CODE reference )

    See GX::Meta::Attribute. The initializer must return a blessed reference or undef.

  • weaken ( bool )

    A boolean flag indicating whether or not to weaken the stored reference. Defaults to false.

  • See GX::Meta::Attribute for more.
Returns:
Exceptions:

Public Methods

Also see GX::Meta::Attribute.

add_delegator

Creates a new delegator metaobject for the attribute and adds it.

$delegator = $attribute->add_delegator( %arguments );
Arguments:
Returns:
Exceptions:

delegators

Returns the associated delegator metaobjects.

@delegators = $attribute->delegators;
Returns:

install_delegators

Installs the delegators.

$attribute->install_delegators;
Exceptions:

USAGE

Accessor Types

See GX::Meta::Attribute::Scalar.

SEE ALSO

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright © 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.