Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define different signatures for each supported ruby versions? #613

Closed
kachick opened this issue Feb 27, 2021 · 2 comments
Closed

Comments

@kachick
Copy link
Member

kachick commented Feb 27, 2021

https://github.com/ruby/rbs/blob/11d99dbe7de1cd9da6487ad0a153424b6452ee15/docs/CONTRIBUTING.md#the-target-version

The section describes as below

The Target Version
The standard library signatures targets Ruby 2.7 for now.
The library code targets Ruby 2.6, 2.7, and 3.0.

How about to add/modify signatures for core/ in each ruby versions?
e.g.) Ruby 3.0 added Hash#except, but it looks nothing in core/hash.rbs. Does rbs have any version guard feature?

@soutaro
Copy link
Member

soutaro commented Mar 12, 2021

The doc is wrong... The target right now is 3.0.

We don't have a plan to introduce something like version guard yet.

@kachick
Copy link
Member Author

kachick commented Mar 12, 2021

I see! So I close this issue. And I might try some PRs around the doc and hash.rbs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants