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

fix for/for_class parameter that don't match between doc and code #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

potatogim
Copy link

@potatogim potatogim commented Mar 12, 2025

The documentation describing the apply_base_class_role() method of the Mouse::Util::MetaRole package, and other similar methods, explains that it takes "for" parameter.

However, they actually take a parameter with the name "for_class", which can be confusing to users and needs to be fixed.

So in the apply_base_class_role() method, we also use the_fixup_old_style_args() function to convert the old parameter style to the current one.

The documentation describing the apply_base_class_role() method of the
Mouse::Util::MetaRole package, and other similar methods, explains that
it takes "for" parameter.

However, they actually take a parameter with the name "for_class", which
can be confusing to users and needs to be fixed.

So in the apply_base_class_role() method, we also use the
_fixup_old_style_args() function to convert the old parameter style to
the current one.

Signed-off-by: Jihyeon Gim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant