use Carp 'confess';
use Scalar::Util 'blessed', 'weaken';
-our $VERSION = '0.02';
+our $VERSION = '0.01';
our $AUTHORITY = 'cpan:STEVAN';
use base 'Class::MOP::Method';
my $self = bless {
# from our superclass
- body => undef,
+ '&!body' => undef,
# specific to this subclass
- attribute => $options{attribute},
- as_inline => ($options{as_inline} || 0),
- accessor_type => $options{accessor_type},
+ '$!attribute' => $options{attribute},
+ '$!is_inline' => ($options{is_inline} || 0),
+ '$!accessor_type' => $options{accessor_type},
} => $class;
# we don't want this creating
# a cycle in the code, if not
# needed
- weaken($self->{attribute});
+ weaken($self->{'$!attribute'});
$self->intialize_body;
## accessors
-sub associated_attribute { (shift)->{attribute} }
-sub accessor_type { (shift)->{accessor_type} }
-sub as_inline { (shift)->{as_inline} }
+sub associated_attribute { (shift)->{'$!attribute'} }
+sub accessor_type { (shift)->{'$!accessor_type'} }
+sub is_inline { (shift)->{'$!is_inline'} }
## factory
'generate',
$self->accessor_type,
'method',
- ($self->as_inline ? 'inline' : ())
+ ($self->is_inline ? 'inline' : ())
);
- eval { $self->{body} = $self->$method_name() };
+ eval { $self->{'&!body'} = $self->$method_name() };
die $@ if $@;
}
=item B<accessor_type>
-=item B<as_inline>
+=item B<is_inline>
=item B<associated_attribute>
Stevan Little E<lt>stevan@iinteractive.comE<gt>
-Yuval Kogman E<lt>nothingmuch@woobling.comE<gt>
-
=head1 COPYRIGHT AND LICENSE
Copyright 2006 by Infinity Interactive, Inc.