Skip to content

Add specs for original_name with define_method#1353

Merged
eregon merged 1 commit intoruby:masterfrom
sampokuokkanen:define-method-original-name
May 3, 2026
Merged

Add specs for original_name with define_method#1353
eregon merged 1 commit intoruby:masterfrom
sampokuokkanen:define-method-original-name

Conversation

@sampokuokkanen
Copy link
Copy Markdown
Contributor

Verify that Method#original_name and UnboundMethod#original_name return the source UnboundMethod's name when a method is created via define_method, and that the original name is preserved through define_method and aliasing.

Reason for the PR:
Noticed that this behavior did not have test coverage when looking at jruby/jruby#9257.

Verify that Method#original_name and UnboundMethod#original_name return the source UnboundMethod's name when a method is created via define_method, and that the original name is preserved through define_method and aliasing.
@eregon eregon merged commit f5dba11 into ruby:master May 3, 2026
14 checks passed
@eregon
Copy link
Copy Markdown
Member

eregon commented May 3, 2026

Thanks!

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