MooseX::ShortCut::BuildInstance::Types - The BuildInstance type library
This is the package for managing types in the MooseX::ShortCut::BuildInstance package.
All type tests included with this package are considered to be the fixed definition of the types. Any definition not included in the testing is considered flexible.
This module uses Type::Tiny which can, in the background, use Type::Tiny::XS. While in general this is a good thing you will need to make sure that Type::Tiny::XS is version 0.010 or newer since the older ones didn't support the 'Optional' method.
These are checks compatible with the Moose typing system. They are used to see if passed information is compatible with some standard. For mor information see Type::Tiny.
Test: to see if the name_space fits classical package nameing conventions
Accepts: $string =~ /^[A-Za-z:]+$/
Test: Checking for an arrayref of classes suitable for inheritance by the built class
Accepts: an array ref of class names
Test: Checking for an arrayref of role suitable for adding to the built class
Accepts: an array ref of role names
Test: This is a hash ref of attributes to be added to the built class
Accepts: the hash keys will be treated as the attribute names and the values will be treated as the attribute settings. Only HashRefs are accepted as values but no testing of the HashRef for suitability as attribute settings is done prior to implementation by $meta->add_attribute( $value ).
Test: This is a hash ref of methods to be added to the built class
Accepts: the hash keys will be treated as the method names and the values will be treated as method refs. Only CodeRefs are accepted as values but no testing of the CodeRefs for suitability as methods is done prior to implementation by $meta->add_method( $value ).
Test: This is a Dictionary ref defining the possible entrys to the 'build_class' function
Accepts:
Dict[ package => Optional[ NameSpace ], superclasses => Optional[ SuperClassesList ], roles => Optional[ RolesList ], add_roles_in_sequence => Optional[ RolesList ], add_attributes => Optional[ Attributes ], add_methods => Optional[ Methods ], ]
MooseX-ShortCut-BuildInstance/issues
1. Nothing currently
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
This software is copyrighted (c) 2014 by Jed Lund
version
Type::Tiny
To install MooseX::ShortCut::BuildInstance, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::ShortCut::BuildInstance
CPAN shell
perl -MCPAN -e shell install MooseX::ShortCut::BuildInstance
For more information on module installation, please visit the detailed CPAN module installation guide.