GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::TYPES::MOOSE (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 0.46

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 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::Basetype_storage to provide a hash reference containing all built-in Moose types.

SEE ALSO

Moose, Moose::Util::TypeConstraints

AUTHOR

Robert phaylon Sedlacek <rs@474.at>

COPYRIGHT AND LICENSE

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::TYPES::MOOSE (3) 2015-08-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.