Skip to content

Conversation

@bdewater-thatch
Copy link
Contributor

@bdewater-thatch bdewater-thatch commented Jan 19, 2026

See rdoc example a few lines above the diff, this is valid too.

rbs/core/string.rbs

Lines 1620 to 1622 in 5771976

# s = ""
# s.append_as_bytes(0, 257) # => "\u0000\u0001"
# s.bytesize # => 2

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.

Thank you for opening this PR! Two requests:

  1. Looks like the method accepts multiple arguments. So, can you support it? (*String | Integer) -> String would be its type.
  2. Can you update test in String_test.rb? It already has a test case, so adding a few assertions with Integer should be fine.

@soutaro soutaro added this to the RBS 4.0 milestone Jan 21, 2026
@bdewater-thatch bdewater-thatch force-pushed the bdewater-thatch-patch-1 branch from 430ec7e to 2a5533d Compare January 21, 2026 15:25
@bdewater-thatch
Copy link
Contributor Author

Thanks! I'm new to RBS, appreciate the pointers :)

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.

Thanks! 💯

@soutaro soutaro merged commit 43d862d into ruby:master Jan 22, 2026
20 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