MOP4Import::Declare::Type - inner-type related pragmas
package MyApp; use MOP4Import::Declare::Type [type => BaseUser => [fields => qw/sessid/] , [subtypes => Guest => [] , RegisteredUser => [[fields => qw/uid registered_at/]] ] ];
This module provides inner-type related pragmas. Usually used via MOP4Import::Types.
Declare inner-type $typename based on given @spec.
$typename
@spec
Declare extended version of $typename, which is inherited from parent class, based on given @spec.
Declare multiple inner-types from given $typename => [@spec] pair list.
$typename => [@spec]
Kobayashi, Hiroaki <hkoba@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MOP4Import::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MOP4Import::Declare
CPAN shell
perl -MCPAN -e shell install MOP4Import::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.