Revision history for Perl extension Moose
+0.34
+ ~~ some doc fixes ~~
+
0.33 Fri. Dec. 14, 2007
- !! Moose now loads ~45% faster !!
- !! with new Class::MOP 0.49 !!
+ !! Moose now loads 2 x faster !!
+ !! with new Class::MOP 0.49 !!
++ new ooose.pm module to make command line
Moose-ness easier (see POD docs for more)
use strict;
use warnings;
-our $VERSION = '0.33';
+our $VERSION = '0.34';
our $AUTHORITY = 'cpan:STEVAN';
use Scalar::Util 'blessed', 'reftype';
The default behavior here is to just load C<$metaclass_name>; however, we also
have a way to alias to a shorter name. This will first look to see if
B<Moose::Meta::Attribute::Custom::$metaclass_name> exists. If it does, Moose
-will then check to see if that has the method C<register_implemenetation>, which
+will then check to see if that has the method C<register_implementation>, which
should return the actual name of the custom attribute metaclass. If there is no
-C<register_implemenetation> method, it will fall back to using
+C<register_implementation> method, it will fall back to using
B<Moose::Meta::Attribute::Custom::$metaclass_name> as the metaclass name.
=item I<trigger =E<gt> $code>
. $self->_inline_check_required . "\n"
. $self->_inline_check_coercion . "\n"
. $self->_inline_check_constraint($value_name) . "\n"
- . $self->_inline_store($inv, $value_name) . "\n"
- . $self->_inline_trigger($inv, $value_name) . "\n"
+ . $self->_inline_store($inv, $value_name) . "\n"
+ . $self->_inline_trigger($inv, $value_name) . "\n"
. ' }' . "\n"
. $self->_inline_check_lazy . "\n"
. $self->_inline_post_body(@_) . "\n"
? $attr->type_constraint->_compiled_type_constraint
: undef;
+ #warn $code;
my $sub = eval $code;
confess "Could not create accessor for '$attr_name' because $@ \n code: $code" if $@;
return $sub;
. $self->_inline_copy_value
. $self->_inline_check_required
. $self->_inline_check_coercion
- . $self->_inline_check_constraint($value_name)
- . $self->_inline_store($inv, $value_name)
- . $self->_inline_post_body(@_)
- . $self->_inline_trigger($inv, $value_name)
+ . $self->_inline_check_constraint($value_name)
+ . $self->_inline_store($inv, $value_name)
+ . $self->_inline_post_body(@_)
+ . $self->_inline_trigger($inv, $value_name)
. ' }';
# NOTE:
? $attr->type_constraint->_compiled_type_constraint
: undef;
+
my $sub = eval $code;
confess "Could not create reader for '$attr_name' because $@ \n code: $code" if $@;
return $sub;