-0.0001 May 24, 2007
- Initial Release!
\ No newline at end of file
+0.00100 Mar 15, 2008
+ - Initial Release!
\ No newline at end of file
package MooseX::Adopt::Class::Accessor::Fast;
-our $VERSION = 0.0001;
+our $VERSION = 0.00100;
$INC{'Class/Accessor/Fast.pm'} = __FILE__;
package Class::Accessor::Fast;
-use base qw/MooseX::Emulate::Class::Accessor::Fast/;
+use Moose;
+with 'MooseX::Emulate::Class::Accessor::Fast';
1;
L<Moose>, L<Class::Accessor::Fast>, L<MooseX::Emulate::Class::Accessor::Fast>
-=head1 AUTHOR
+=head1 AUTHORS
-Matt S Trout
+=over 4
-With Contributions from:
-Guillermo Roditi (groditi) <groditi@cpan.org>
+=item Matt S Trout
+
+=item Guillermo Roditi (groditi) <groditi@cpan.org>
+
+=back
=head1 LICENSE
package MooseX::Emulate::Class::Accessor::Fast;
-use Moose;
+use Moose::Role;
-our $VERSION = 0.0001;
+our $VERSION = 0.00100;
=head1 NAME
=head1 SYNOPSYS
package MyClass;
+ Use Moose;
+
+ with 'MooseX::Emulate::Class::Accessor::Fast';
- use base 'MooseX::Emulate::Class::Accessor::Fast';
- #or
- use Moose;
- extends 'MooseX::Emulate::Class::Accessor::Fast';
#fields with readers and writers
__PACKAGE__->mk_accessors(qw/field1 field2/);
accurately as possible using the Moose attribute system. The public API of
C<Class::Accessor::Fast> is wholly supported, but the private methods are not.
If you are only using the public methods (as you should) migration should be a
-matter of switching your C<use base> line.
+matter of switching your C<use base> line to a C<with> line.
While I have attempted to emulate the behavior of Class::Accessor::Fast as closely
as possible bugs may still be lurking in edge-cases.
package TestAdoptCAF;
-use base qw/Class::Accessor::Fast/;
+use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors('foo');
__PACKAGE__->mk_ro_accessors('bar');