| 1 | package GitHub::MergeVelocity::Types; | ||
| 2 | 3 | our $VERSION = '0.000008'; | |
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use DateTime::Format::ISO8601; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use Type::Library -base, -declare => ('Datetime'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use Type::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Types::Standard -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 3 | class_type Datetime, { class => "DateTime" }; | |
| 12 | |||
| 13 | coerce Datetime, from Str, | ||
| 14 | 113 | ▶ | via { DateTime::Format::ISO8601->parse_datetime($_) }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 15 | 3 | 1; | |
| 16 | |||
| 17 | =pod | ||
| 18 | |||
| 19 | =encoding UTF-8 | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | GitHub::MergeVelocity::Types - Custom types for use by GitHub::MergeVelocity modules | ||
| 24 | |||
| 25 | =head1 VERSION | ||
| 26 | |||
| 27 | version 0.000008 | ||
| 28 | |||
| 29 | =head1 AUTHOR | ||
| 30 | |||
| 31 | Olaf Alders <olaf@wundercounter.com> | ||
| 32 | |||
| 33 | =head1 COPYRIGHT AND LICENSE | ||
| 34 | |||
| 35 | This software is copyright (c) 2015 by Olaf Alders. | ||
| 36 | |||
| 37 | This is free software; you can redistribute it and/or modify it under | ||
| 38 | the same terms as the Perl 5 programming language system itself. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | __END__ | ||
| 43 | |||
| 44 | # ABSTRACT: Custom types for use by GitHub::MergeVelocity modules | ||