Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

MooseX::Types::Moose

Name MooseX::Types::Moose
Version 0.50
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/MooseX/Types/Moose.pm
Is Core No
Search CPAN for this module MooseX::Types::Moose
Documentation MooseX::Types::Moose
Module Details MooseX::Types::Moose


NAME

MooseX::Types::Moose - Type exports that match the types shipped with Moose


VERSION

version 0.50


SYNOPSIS

  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;


DESCRIPTION

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


METHODS

type_storage

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


SEE ALSO

Moose, the Moose::Util::TypeConstraints manpage


SUPPORT

Bugs may be submitted through the RT bug tracker (or bug-MooseX-Types@rt.cpan.org).

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.


AUTHOR

Robert ``phaylon'' Sedlacek <rs@474.at>


COPYRIGHT AND LICENCE

This software is copyright (c) 2007 by Robert ``phaylon'' Sedlacek.

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 Diver brought to you by ScriptSolutions.com © 1997- 2024