summaryrefslogtreecommitdiff
path: root/include/ruby/thread.h
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2025-10-15 08:46:32 +0200
committergit <svn-admin@ruby-lang.org>2025-10-16 12:34:14 +0000
commitf5d3b6e6261569a7205b637052d1fec45ae4620b (patch)
tree3fabf1590eba26c56d6a5794ce5f3fbe5a21e089 /include/ruby/thread.h
parent1d95d75c3f8821309356131beea837ff158dffc1 (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/thread.h')
0 files changed, 0 insertions, 0 deletions