יובל קוג'מן (Yuval Kogman) > MooseX-Types-Set-Object > MooseX::Types::Set::Object

Download:
MooseX-Types-Set-Object-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source   Latest Release: MooseX-Types-Set-Object-0.04

NAME ^

MooseX::Types::Set::Object - Set::Object type with coercions and stuff.

SYNOPSIS ^

        package Foo;
        use Moose;

        use MooseX::Types::Set::Object;

        has children => (
                isa      => "Set::Object",
                accessor => "transition_set",
                coerce   => 1, # also accept array refs
                handles  => {
                        children     => "members",
                        add_child    => "insert",
                        remove_child => "remove",
                        # See Set::Object for all the methods you could delegate
                },
        );

        # ...

        my $foo = Foo->new( children => [ @objects ] );

        $foo->add_child( $obj );

DESCRIPTION ^

This module provides Moose type constraints (see Moose::Util::TypeConstraints, MooseX::Types).

TYPES ^

Set::Object

A subtype of Object that isa Set::Object with coercions to and from the ArrayRef type.

SEE ALSO ^

Set::Object, MooseX::AttributeHandlers, MooseX::Types, Moose::Util::TypeConstraints

VERSION CONTROL ^

This module is maintained using Darcs. You can get the latest version from http://nothingmuch.woobling.org/code, and use darcs send to commit changes.

AUTHOR ^

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT ^

        Copyright (c) 2008 Yuval Kogman. All rights reserved
        This program is free software; you can redistribute
        it and/or modify it under the same terms as Perl itself.
syntax highlighting: