diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2025-10-15 08:46:32 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-16 12:34:14 +0000 |
| commit | f5d3b6e6261569a7205b637052d1fec45ae4620b (patch) | |
| tree | 3fabf1590eba26c56d6a5794ce5f3fbe5a21e089 /include/ruby/internal/static_assert.h | |
| parent | 1d95d75c3f8821309356131beea837ff158dffc1 (diff) | |
[ruby/prism] Add support for `Prism.parse(foo, version: "current")`
The docs currently say to use `Prism.parse(foo, version: RUBY_VERSION)` for this.
By specifying "current" instead, we can have prism raise a more specifc error.
Note: Does not use `ruby_version` from `ruby/version.h` because writing a test for that is not really possible.
`RUBY_VERSION` is nicely stubbable for both the c-ext and FFI backend.
https://github.com/ruby/prism/commit/9c5cd205cf
Diffstat (limited to 'include/ruby/internal/static_assert.h')
0 files changed, 0 insertions, 0 deletions
