package MooseX::Declare::Syntax::Keyword::Class; BEGIN { $MooseX::Declare::Syntax::Keyword::Class::AUTHORITY = 'cpan:FLORA'; } { $MooseX::Declare::Syntax::Keyword::Class::VERSION = '0.35'; } # ABSTRACT: Class declarations use Moose; use namespace::clean -except => 'meta'; with qw( MooseX::Declare::Syntax::MooseSetup MooseX::Declare::Syntax::RoleApplication MooseX::Declare::Syntax::Extending ); around imported_moose_symbols => sub { shift->(@_), qw( extends has inner super ) }; sub generate_export { my $self = shift; sub { $self->make_anon_metaclass } } around auto_make_immutable => sub { 1 }; around make_anon_metaclass => sub { Moose::Meta::Class->create_anon_class }; 1; __END__ =pod =encoding utf-8 =head1 NAME MooseX::Declare::Syntax::Keyword::Class - Class declarations =head1 METHODS =head2 generate_export CodeRef generate_export () This will return a closure doing a call to L. =head1 CONSUMES =over 4 =item * L =item * L =item * L =back =head1 MODIFIED METHODS =head2 imported_moose_symbols List Object->imported_moose_symbols () Extends the existing L with C, C, C and C. =head2 auto_make_immutable Bool Object->auto_make_immutable () Is set to a true value, so classes are made immutable by default. =head2 make_anon_metaclass Object Object->make_anon_metaclass () Returns an anonymous instance of L. =head1 SEE ALSO =over 4 =item * L =item * L =item * L =item * L =item * L =back =head1 AUTHORS =over 4 =item * Florian Ragwitz =item * Ash Berlin =item * Chas. J. Owens IV =item * Chris Prather =item * Dave Rolsky =item * Devin Austin =item * Hans Dieter Pearcey =item * Justin Hunter =item * Matt Kraai =item * Michele Beltrame =item * Nelo Onyiah =item * nperez =item * Piers Cawley =item * Rafael Kitover =item * Robert 'phaylon' Sedlacek =item * Stevan Little =item * Tomas Doran =item * Yanick Champoux =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2011 by Florian Ragwitz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut