2 package Moose::Meta::Attribute;
7 use base 'Class::MOP::Attribute';
9 Moose::Meta::Attribute->meta->add_around_method_modifier('new' => sub {
11 my ($class, $attribute_name, %options) = @_;
13 # extract the sigil and accessor name
14 my ($init_arg) = ($attribute_name =~ /^[\$\@\%][\.\:](.*)$/);
16 $cont->($class, $attribute_name, (init_arg => $init_arg, %options));
28 Moose::Meta::Attribute -
44 All complex software has bugs lurking in it, and this module is no
45 exception. If you find a bug please either email me, or add the bug
50 I use L<Devel::Cover> to test the code coverage of my tests, below is the
51 L<Devel::Cover> report on this module's test suite.
53 =head1 ACKNOWLEDGEMENTS
57 Stevan Little E<lt>stevan@iinteractive.comE<gt>
59 =head1 COPYRIGHT AND LICENSE
61 Copyright 2006 by Infinity Interactive, Inc.
63 L<http://www.iinteractive.com>
65 This library is free software; you can redistribute it and/or modify
66 it under the same terms as Perl itself.