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