Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"attribute required" documentation improvements #187

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/Moose/Meta/Attribute.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,10 @@ by that parent class.

=head1 INHERITANCE

C<Moose::Meta::Attribute> is a subclass of L<Class::MOP::Attribute>.
C<Moose::Meta::Attribute> is a subclass of L<Class::MOP::Attribute> and
inherits these options:
C<init_arg> C<builder> C<default> C<initializer> C<accessor> C<reader>
C<writer> C<predicate> C<clearer> C<definition_context>

=head1 METHODS

Expand Down Expand Up @@ -1433,8 +1436,8 @@ An attribute which is required must be provided to the constructor. An
attribute which is required can also have a C<default> or C<builder>,
which will satisfy its required-ness.

A required attribute must have a C<default>, C<builder> or a
non-C<undef> C<init_arg>
If C<init_arg> is C<undef> on a required attribute, it must have a
C<default> or a C<builder>.

=item * lazy => $bool

Expand Down