Skip to content

Conversation

vinistock
Copy link
Collaborator

Instead of setting the heading values one by one, we can simply initialize the hash straight away. And since the default values never change, we can use a constant to define them and dup in case they have to be modified by the instance.

@vinistock vinistock requested a review from st0012 April 18, 2025 11:50
@vinistock vinistock self-assigned this Apr 18, 2025
Copy link
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

@vinistock vinistock force-pushed the vs-make-to-rdoc-headings-more-idiomatic branch from 72d2bc2 to 1891829 Compare April 21, 2025 12:16
@vinistock vinistock force-pushed the vs-make-to-rdoc-headings-more-idiomatic branch from 1891829 to 2c151c6 Compare April 21, 2025 20:02
@vinistock vinistock merged commit 78521dd into ruby:master Apr 21, 2025
30 checks passed
@vinistock vinistock deleted the vs-make-to-rdoc-headings-more-idiomatic branch April 21, 2025 20:24
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.

4 participants