Chris Prather > MooseX-POE-0.211 > MooseX::POE::Aliased

Download:
MooseX-POE-0.211.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  6
Open  7
View/Report Bugs
Module Version: 0.211   Source   Latest Release: MooseX-POE-0.215

NAME ^

MooseX::POE::Aliased - A sane alias attribute for your MooseX::POE objects.

VERSION ^

version 0.211

SYNOPSIS ^

        use MooseX::POE;

    with qw(MooseX::POE::Aliased);

    my $obj = Foo->new( alias => "blah" );

    $obj->alias("arf"); # previous one is removed, new one is set

    $obj->alias(undef); # no alias set

DESCRIPTION ^

This role provides an alias attribute for your MooseX::POE objects.

The attribute can be set, causing the current alias to be cleared and the new value to be set.

METHODS ^

alias

The alias to set for the session.

Defaults to the overload::StrVal of the object.

If the value is set at runtime the alias will be updated in the POE::Kernel.

A value of undef inhibits aliasing.

ATTRIBUTES ^

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: