$options->{accessor} ||= $name;
}
}
- elsif ($options->{is} eq 'bare') {
- # do nothing, but don't complain (later) about missing methods
- }
else {
$class->throw_error("I do not understand this option (is => " . $options->{is} . ") on attribute ($name)", data => $options->{is});
}
my $self = shift;
$self->SUPER::install_accessors(@_);
$self->install_delegation if $self->has_handles;
- unless (
- # XXX handles should be in associated_methods
- $self->has_handles
- || @{ $self->associated_methods }
- || ($self->_is_metadata || '') eq 'bare'
- ) {
- $self->throw_error(
- 'Attribute (' . $self->name . ') has no associated methods'
- . ' (did you mean to provide an "is" argument?)'
- )
- }
return;
}