-
-
16 Aug 2015 02:08:42 UTC
- Distribution: MooseX-Types-Set-Object
- Module version: 0.05
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (1862 / 0 / 0)
- Kwalitee
Bus factor: 3- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (27.48KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
MooseX::Types::Set::Object - Set::Object type with coercions and stuff.
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 global, 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 theArrayRef
type.
SEE ALSO
Set::Object, MooseX::AttributeHandlers, MooseX::Types, Moose::Util::TypeConstraints
AUTHOR
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
CONTRIBUTORS
Karen Etheridge <ether@cpan.org>
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.
Module Install Instructions
To install MooseX::Types::Set::Object, copy and paste the appropriate command in to your terminal.
cpanm MooseX::Types::Set::Object
perl -MCPAN -e shell install MooseX::Types::Set::Object
For more information on module installation, please visit the detailed CPAN module installation guide.