| 1 | package Stepford::Grapher::Types; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | our $VERSION = '1.01'; | |
| 8 | |||
| 9 | 2 | ▶ | use MooseX::Types 0.48 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use parent 'MooseX::Types::Combine'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | # add MooseX::Getopt types for the types | ||
| 13 | 2 | ▶ | use Stepford::Types qw( ArrayOfClassPrefixes Step ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | ## no critic (Modules::RequireExplicitInclusion) | ||
| 15 | 2 | MooseX::Getopt::OptionTypeMap->add_option_type_to_map( | |
| 16 | ArrayOfClassPrefixes() => '=s@', | ||
| 17 | ); | ||
| 18 | 2 | MooseX::Getopt::OptionTypeMap->add_option_type_to_map( | |
| 19 | Step() => '=s', | ||
| 20 | ); | ||
| 21 | ## use critic | ||
| 22 | |||
| 23 | # provide all the types from the previous type library | ||
| 24 | 2 | __PACKAGE__->provide_types_from( | |
| 25 | qw( | ||
| 26 | Stepford::Types | ||
| 27 | ) | ||
| 28 | ); | ||
| 29 | |||
| 30 | 2 | 1; | |
| 31 | |||
| 32 | =pod | ||
| 33 | |||
| 34 | =encoding UTF-8 | ||
| 35 | |||
| 36 | =head1 NAME | ||
| 37 | |||
| 38 | Stepford::Grapher::Types - Internal types used in Stepford::Grapher | ||
| 39 | |||
| 40 | =head1 VERSION | ||
| 41 | |||
| 42 | version 1.01 | ||
| 43 | |||
| 44 | =head1 DESCRIPTION | ||
| 45 | |||
| 46 | A simple extension to L<Stepford::Types>. | ||
| 47 | |||
| 48 | Loading this type library provides additional L<MooseX::Getopt::OptionTypeMap> | ||
| 49 | mappings for types defined by Stepford::Types | ||
| 50 | |||
| 51 | =head1 SEE ALSO | ||
| 52 | |||
| 53 | L<Stepford::Types> | ||
| 54 | |||
| 55 | =head1 SUPPORT | ||
| 56 | |||
| 57 | Bugs may be submitted through L<https://github.com/maxmind/Stepford-Grapher/issues>. | ||
| 58 | |||
| 59 | =head1 AUTHOR | ||
| 60 | |||
| 61 | Mark Fowler <mfowler@maxmind.com> | ||
| 62 | |||
| 63 | =head1 COPYRIGHT AND LICENSE | ||
| 64 | |||
| 65 | This software is copyright (c) 2016 - 2017 by MaxMind, Inc.. | ||
| 66 | |||
| 67 | This is free software; you can redistribute it and/or modify it under | ||
| 68 | the same terms as the Perl 5 programming language system itself. | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | __END__ | ||