GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::TYPES::SET::OBJECT (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 0.05

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 a Moose type constraint (see Moose::Util::TypeConstraints, MooseX::Types). Note that this constraint and its coercions are <B>globalB>, not simply limited to the scope that imported it — in this way it acts like a regular Moose type constraint, rather than one from 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

AUTHOR

XXXX XXXXX (Yuval Kogman) <nothingmuch@woobling.org>

CONTRIBUTORS

o Karen Etheridge <ether@cpan.org>
o Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2008 by Yuval Kogman.

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::TYPES::SET::OBJECT (3) 2015-08-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.