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