The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::Role::Atom - Non-immutable roles are silly. Lets fix that.

SYNOPSIS

  # A basic role the official way
  package Foo;
  
  use Moose::Role;
  use namespace::autoclean;
  
  requires 'icecream';
  
  has 'something' => (
      is => 'ro',
      isa => 'Str',
  );
  
  __PACKAGE__->meta->make_immutable;
  
  
  
  # A basic role the atomic way
  package Bar;
  
  use MooseX::Role::Atom [
        requires => 'icecream',
        has      => [
            something => (
                is  => 'ro',
                isa => 'Str',
            ),
        ],
  ];

DESCRIPTION

WARNING: THIS MODULE IS PRIMARILY A POLITICAL STATEMENT AT THIS TIME AND MAY CHANGE WITHOUT NOTICE IN RESPONSE TO FEEDBACK

See the description for MooseX::Atom.

SUPPORT

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Atom

AUTHOR

Adam Kennedy <adamk@cpan.org>

SEE ALSO

Moose

COPYRIGHT

Copyright 2010 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.