GX::Meta::Attribute::Array

Module Version: 0.2000_01

NAME

GX::Meta::Attribute::Array - Attribute metaclass

SYNOPSIS

None.

DESCRIPTION

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

METHODS

Constructor

new

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

$attribute = GX::Meta::Attribute::Array->new( %attributes );
Attributes:
  • default ( ARRAY reference )

    See GX::Meta::Attribute. The supplied value must be a reference to an array.

  • initializer ( string | CODE reference )

    See GX::Meta::Attribute. The initializer must return a reference to an array.

  • weaken ( bool )

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

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

Public Methods

See GX::Meta::Attribute.

USAGE

Accessor Types

This attribute class provides the following accessor types:

  • clear

    $invocant->accessor;
  • default

    @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;

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.