Convert from Module::Install to Dist::Zilla
[gitmo/MooseX-Types-Structured.git] / lib / MooseX / Types / Structured / OverflowHandler.pm
CommitLineData
2f8e2a40 1package MooseX::Types::Structured::OverflowHandler;
2
3use Moose;
4
5use overload '""' => 'name', fallback => 1;
6
8dbdca20 7=attr type_constraint
8
9=cut
10
2f8e2a40 11has type_constraint => (
12 is => 'ro',
13 isa => 'Moose::Meta::TypeConstraint',
14 required => 1,
15 handles => [qw/check/],
16);
17
8dbdca20 18=method name
19
20=cut
21
2f8e2a40 22sub name {
23 my ($self) = @_;
24 return 'slurpy ' . $self->type_constraint->name;
25}
26
27no Moose;
28__PACKAGE__->meta->make_immutable;
29
301;