1MooseX::Types::Set::ObjUescetr(3Cpomn)tributed Perl DocuMmoeonsteaXt:i:oTnypes::Set::Object(3pm)
2
3
4

NAME

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

VERSION

9       version 0.05
10

SYNOPSIS

12           package Foo;
13           use Moose;
14
15           use MooseX::Types::Set::Object;
16
17           has children => (
18               isa      => "Set::Object",
19               accessor => "transition_set",
20               coerce   => 1, # also accept array refs
21               handles  => {
22                   children     => "members",
23                   add_child    => "insert",
24                   remove_child => "remove",
25                   # See Set::Object for all the methods you could delegate
26               },
27           );
28
29           # ...
30
31           my $foo = Foo->new( children => [ @objects ] );
32
33           $foo->add_child( $obj );
34

DESCRIPTION

36       This module provides a Moose type constraint (see
37       Moose::Util::TypeConstraints, MooseX::Types).  Note that this
38       constraint and its coercions are global, not simply limited to the
39       scope that imported it -- in this way it acts like a regular Moose type
40       constraint, rather than one from MooseX::Types.
41

TYPES

43       Set::Object
44           A subtype of "Object" that isa Set::Object with coercions to and
45           from the "ArrayRef" type.
46

SEE ALSO

48       Set::Object, MooseX::AttributeHandlers, MooseX::Types,
49       Moose::Util::TypeConstraints
50

AUTHOR

52       XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
53

CONTRIBUTORS

55       ·   Karen Etheridge <ether@cpan.org>
56
57       ·   Florian Ragwitz <rafl@debian.org>
58
60       This software is copyright (c) 2008 by Yuval Kogman.
61
62       This is free software; you can redistribute it and/or modify it under
63       the same terms as the Perl 5 programming language system itself.
64
65
66
67perl v5.32.0                      2020-07-28   MooseX::Types::Set::Object(3pm)
Impressum