Skip to content

Just use Numeric#+@ and return self#2597

Merged
ksss merged 1 commit intoruby:masterfrom
ksss:drop-unnecessary-plus-at
Jul 20, 2025
Merged

Just use Numeric#+@ and return self#2597
ksss merged 1 commit intoruby:masterfrom
ksss:drop-unnecessary-plus-at

Conversation

@ksss
Copy link
Collaborator

@ksss ksss commented Jul 10, 2025

Numeric#+@ is now just this.

class Numeric
  def +@
    self
  end
end

Unnecessary definitions should be removed for the sake of document display.

@ksss ksss changed the title Just use +@ and return self Just use Numeric#+@ and return self Jul 10, 2025
@ksss ksss added this to the RBS 4.0 milestone Jul 15, 2025
@ksss ksss added this pull request to the merge queue Jul 20, 2025
Merged via the queue into ruby:master with commit d4f8193 Jul 20, 2025
20 checks passed
@ksss ksss deleted the drop-unnecessary-plus-at branch July 20, 2025 14:01
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