Skip to content

Fix test target code of module_function#1316

Merged
tompng merged 1 commit intoruby:masterfrom
tompng:module_function_test_fix
Mar 16, 2025
Merged

Fix test target code of module_function#1316
tompng merged 1 commit intoruby:masterfrom
tompng:module_function_test_fix

Conversation

@tompng
Copy link
Copy Markdown
Member

@tompng tompng commented Mar 16, 2025

The test target code was wrong. module_function is only available inside module, not inside class.

module_function is undefed in Class.

Class.undefined_instance_methods
=> [:prepend_features, :extend_object, :refine, :module_function, :append_features]

module_function is only available inside module, not inside class.
Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@tompng tompng merged commit 56a28a1 into ruby:master Mar 16, 2025
30 checks passed
@tompng tompng deleted the module_function_test_fix branch March 16, 2025 11:46
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.

2 participants