| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | package JSON::RPC::Common::TypeConstraints; | ||
| 4 | 6 | $JSON::RPC::Common::TypeConstraints::VERSION = '0.11'; | |
| 5 | # ABSTRACT: Type constraint library | ||
| 6 | |||
| 7 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 6 | ▶ | use MooseX::Types -declare => [qw(JSONDefined JSONValue JSONContainer)]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 6 | ▶ | use MooseX::Types::Moose qw(Value ArrayRef HashRef Undef); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 6 | subtype JSONDefined, as Value|ArrayRef|HashRef; | |
| 14 | |||
| 15 | 6 | subtype JSONValue, as Undef|Value|ArrayRef|HashRef; | |
| 16 | |||
| 17 | 6 | subtype JSONContainer, as ArrayRef|HashRef; | |
| 18 | |||
| 19 | 6 | __PACKAGE__ | |
| 20 | |||
| 21 | __END__ | ||