Skip to content

Conversation

@KaanOzkan
Copy link
Contributor

@KaanOzkan KaanOzkan commented Jul 23, 2025

Motivation

Resolves #2361

Implementation

Tests

#: (String line) -> bool
def rbs_comment?(line)
line.strip.start_with?(": ", "| ")
line.start_with?(":", "|")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect some RBS comments to not have the space?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I removed it by accident, fixed.

#: (String line) -> bool
def rbs_comment?(line)
line.strip.start_with?(": ", "| ")
line.start_with?(":", "|")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
line.start_with?(":", "|")
line.start_with?(": ", "| ")

@KaanOzkan KaanOzkan force-pushed the ko/yard-doc-rbs-2 branch from f7a67c2 to 0ca0ed5 Compare July 25, 2025 13:51
@KaanOzkan KaanOzkan force-pushed the ko/yard-doc-rbs-2 branch from 0ca0ed5 to 6ebb0ba Compare July 25, 2025 14:20
@KaanOzkan KaanOzkan marked this pull request as ready for review July 25, 2025 15:31
@KaanOzkan KaanOzkan requested a review from a team as a code owner July 25, 2025 15:31
@KaanOzkan KaanOzkan merged commit 73102c6 into main Jul 25, 2025
29 of 31 checks passed
@KaanOzkan KaanOzkan deleted the ko/yard-doc-rbs-2 branch July 25, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment parsing errors in generating gem rbis

3 participants