1 package MooseX::Role::Parameterized::Meta::Parameter;
3 extends 'Moose::Meta::Attribute';
5 # This doesn't actually do anything because _process_options does not consult
6 # the default value of "is". hrm.
11 around _process_options => sub {
13 my ($class, $name, $options) = @_;
15 $options->{is} ||= 'ro';
20 __PACKAGE__->meta->make_immutable(
21 inline_constructor => 1,
22 replace_constructor => 1,
23 constructor_name => "_new",
33 MooseX::Role::Parameterized::Meta::Parameter - metaclass for parameters
37 This is the metaclass for parameter objects, a subclass of
38 L<Moose::Meta::Attribute>. Its sole purpose is to make the default value
39 of the C<is> option C<ro>.