Query: moosex::types::set::object
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MooseX::Types::Set::Object(3pm) User Contributed Perl Documentation MooseX::Types::Set::Object(3pm)NAMEMooseX::Types::Set::Object - Set::Object type with coercions and stuff.SYNOPSISpackage 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 );DESCRIPTIONThis module provides Moose type constraints (see Moose::Util::TypeConstraints, MooseX::Types).TYPESSet::Object A subtype of "Object" that isa Set::Object with coercions to and from the "ArrayRef" type.SEE ALSOSet::Object, MooseX::AttributeHandlers, MooseX::Types, Moose::Util::TypeConstraintsAUTHORYuval Kogman <nothingmuch@woobling.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2010 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. perl v5.10.1 2010-12-01 MooseX::Types::Set::Object(3pm)