GX::Meta::Delegator

Module Version: 0.2000_01

NAME

GX::Meta::Delegator - Delegator metaclass

SYNOPSIS

None.

DESCRIPTION

This module provides the GX::Meta::Delegator class.

METHODS

Constructor

new

Returns a new GX::Meta::Delegator metaobject.

$delegator = GX::Meta::Delegator->new( %attributes );
Attributes:
  • attribute ( GX::Meta::Attribute object ) [ required ]

    The associated attribute metaobject.

  • code ( CODE reference ) [ required ]

    A reference to the delegator subroutine.

  • name ( string ) [ required ]

    The name of the delegator method.

Returns:
Exceptions:

Public Methods

attribute

Returns the associated attribute metaobject.

$attribute = $delegator->attribute;
Returns:

code

Returns a reference to the delegator subroutine.

$code = $delegator->code;
Returns:
  • $code ( CODE reference )

name

Returns the name of the delegator method.

$name = $delegator->name;
Returns:
  • $name ( string )

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.