Skip to content

Delegate to Enumerable from Range#{min,max}#2540

Merged
soutaro merged 1 commit intoruby:masterfrom
ksss:range-min-max
Jun 9, 2025
Merged

Delegate to Enumerable from Range#{min,max}#2540
soutaro merged 1 commit intoruby:masterfrom
ksss:range-min-max

Conversation

@ksss
Copy link
Collaborator

@ksss ksss commented Jun 5, 2025

Range#{min,max} may return nil.
I also realized that their signatures are exactly the same as those of Enumerable#{min,max}.
I propose reusing the existing signature as-is while keeping the current documentation unchanged.
Since the specification might change in the future, I’ve written detailed tests just in case.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

👍

@soutaro soutaro added this to the RBS 4.0 milestone Jun 9, 2025
@soutaro soutaro added this pull request to the merge queue Jun 9, 2025
Merged via the queue into ruby:master with commit 56319b4 Jun 9, 2025
22 checks passed
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