$self->{default};
}
+# slots
+
+sub slots { (shift)->name }
+
# class association
sub attach_to_class {
value is a CODE reference, this accessor will pass a single additional
argument C<$instance> into it and return the value.
+=item B<slots>
+
+Returns a list of slots required by the attribute. This is usually
+just one, which is the name of the attribute.
+
=back
=head2 Informational predicates
sub new {
my ($class, $meta, @attrs) = @_;
- my @slots = map { $_->name } @attrs;
+ my @slots = map { $_->slots } @attrs;
bless {
# NOTE:
# I am not sure that it makes