MooseX::Types::Set::Object(3pm)

MooseX::Types::Set::Object3pm

Set::object type with coercions and stuff.

Usage

    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 );

Version

version 0.05

Overview

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 the "ArrayRef" type.

Contributors

•

Karen Etheridge <[email protected]>

•

Florian Ragwitz <[email protected]>

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

Author

XXXX XXX'XX (Yuval Kogman) <[email protected]>

From libmoosex-types-set-object-perl 0.05-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.