Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::types::base(3) [osx man page]

MooseX::Types::Base(3)					User Contributed Perl Documentation				    MooseX::Types::Base(3)

NAME
MooseX::Types::Base - Type library base class VERSION
version 0.35 DESCRIPTION
You normally won't need to interact with this class by yourself. It is merely a collection of functionality that type libraries need to interact with moose and the rest of the MooseX::Types module. METHODS
import Provides the import mechanism for your library. See "LIBRARY USAGE" in MooseX::Types for syntax details on this. get_type This returns a type from the library's store by its name. type_names Returns a list of all known types by their name. add_type Adds a new type to the library. has_type Returns true or false depending on if this library knows a type by that name. type_storage Returns the library's type storage hash reference. You shouldn't use this method directly unless you know what you are doing. It is not an internal method because overriding it makes virtual libraries very easy. registered_class_types Returns the class types registered within this library. Don't use directly. register_class_type Register a "class_type" for use in this library by class name. get_registered_class_type Get a "class_type" registered in this library by name. registered_role_types Returns the role types registered within this library. Don't use directly. register_role_type Register a "role_type" for use in this library by role name. get_registered_role_type Get a "role_type" registered in this library by role name. SEE ALSO
MooseX::Types::Moose LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself. AUTHOR
Robert "phaylon" Sedlacek <rs@474.at> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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 v5.16.2 2012-05-18 MooseX::Types::Base(3)

Check Out this Related Man Page

MooseX::Types::Util(3pm)				User Contributed Perl Documentation				  MooseX::Types::Util(3pm)

NAME
MooseX::Types::Util - Common utility functions for the distribution VERSION
version 0.35 DESCRIPTION
This package the exportable functions that many parts in MooseX::Types might need. FUNCTIONS
filter_tags Takes a list and returns two references. The first is a hash reference containing the tags as keys and the number of their appearance as values. The second is an array reference containing all other elements. has_available_type_export TypeConstraint | Undef = has_available_type_export($package, $name); This function allows you to introspect if a given type export is available at this point in time. This means that the $package must have imported a typeconstraint with the name $name, and it must be still in its symbol table. Two arguments are expected: $package The name of the package to introspect. $name The name of the type export to introspect. Note that the $name is the exported name of the type, not the declared one. This means that if you use Sub::Exporters functionality to rename an import like this: use MyTypes Str => { -as => 'MyStr' }; you would have to introspect this type like this: has_available_type_export $package, 'MyStr'; The return value will be either the type constraint that belongs to the export or an undefined value. SEE ALSO
MooseX::Types::Moose, Exporter LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself. AUTHOR
Robert "phaylon" Sedlacek <rs@474.at> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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 v5.14.2 2012-05-19 MooseX::Types::Util(3pm)
Man Page