MooseX::Types::Moose(3pm)

MooseX::Types::Moose3pm

Type exports that match the types shipped with moose

Usage

  package Foo;
  use Moose;
  use MooseX::Types::Moose qw( ArrayRef Int Str );
  use Carp qw( croak );
  has 'name',
    is  => 'rw',
    isa => Str;
  has 'ids',
    is  => 'rw',
    isa => ArrayRef[Int];
  sub add {
      my ($self, $x, $y) = @_;
      croak 'First arg not an Int'  unless is_Int($x);
      croak 'Second arg not an Int' unless is_Int($y);
      return $x + $y;
  }
  1;

Version

version 0.51

Overview

This package contains a virtual library for MooseX::Types that is able to export all types known to Moose. See MooseX::Types for general usage information.

Methods

type_storage

Overrides MooseX::Types::Base' "type_storage" to provide a hash reference containing all built-in Moose types.

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types> (or [email protected] <mailto:[email protected]>).

There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>.

There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.

Releases

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

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

Author

Robert "phaylon" Sedlacek <[email protected]>

From libmoosex-types-perl 0.51-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.