Skip to content

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

Open
potatogim wants to merge 1 commit intoxslate:masterfrom
gluesys:for_class
Open

fix for/for_class parameter that don't match between doc and code#124
potatogim wants to merge 1 commit intoxslate:masterfrom
gluesys:for_class

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 <potatogim@gluesys.com>
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