| 1 | 1 | ▶ | use Renard::Incunabula::Common::Setup; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Intertangle::Jacquard::Types; | ||
| 3 | # ABSTRACT: Type library for Jacquard | ||
| 4 | 1 | $Intertangle::Jacquard::Types::VERSION = '0.001'; | |
| 5 | 1 | use Type::Library 0.008 -base, | |
| 6 | -declare => [qw( | ||
| 7 | Actor | ||
| 8 | State | ||
| 9 | 1 | ▶ | )]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use Type::Utils -all; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | ▶ | use Renard::Incunabula::Common::Types qw(InstanceOf); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | class_type "Actor", | |
| 15 | { class => 'Intertangle::Jacquard::Actor' }; | ||
| 16 | |||
| 17 | 1 | class_type "State", | |
| 18 | { class => "Intertangle::Jacquard::Render::State" }; | ||
| 19 | |||
| 20 | 1 | 1; | |
| 21 | |||
| 22 | __END__ | ||
| 23 | |||
| 24 | =pod | ||
| 25 | |||
| 26 | =encoding UTF-8 | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Intertangle::Jacquard::Types - Type library for Jacquard | ||
| 31 | |||
| 32 | =head1 VERSION | ||
| 33 | |||
| 34 | version 0.001 | ||
| 35 | |||
| 36 | =head1 EXTENDS | ||
| 37 | |||
| 38 | =over 4 | ||
| 39 | |||
| 40 | =item * L<Type::Library> | ||
| 41 | |||
| 42 | =back | ||
| 43 | |||
| 44 | =head1 TYPES | ||
| 45 | |||
| 46 | =head2 Actor | ||
| 47 | |||
| 48 | A type for any reference that extends L<Intertangle::Jacquard::Actor>. | ||
| 49 | |||
| 50 | =head2 State | ||
| 51 | |||
| 52 | A type for any reference that extends L<Intertangle::Jacquard::Render::State>. | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Zakariyya Mughal <zmughal@cpan.org> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2017 by Zakariyya Mughal. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =cut | ||