Skip to content

Add module_function support#419

Merged
mame merged 1 commit intoruby:masterfrom
mame:module-function
Apr 7, 2026
Merged

Add module_function support#419
mame merged 1 commit intoruby:masterfrom
mame:module-function

Conversation

@mame
Copy link
Copy Markdown
Member

@mame mame commented Apr 7, 2026

When module_function is called without arguments in a module body, subsequent method definitions are registered as both instance methods and singleton methods, matching Ruby's behavior.

When `module_function` is called without arguments in a module body,
subsequent method definitions are registered as both instance methods
and singleton methods, matching Ruby's behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mame mame enabled auto-merge (rebase) April 7, 2026 08:00
@mame mame merged commit 5bfa9ff into ruby:master Apr 7, 2026
6 checks passed
@mame mame deleted the module-function branch April 7, 2026 08:11
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