Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

module · Ruby 4.1

Ruby::Prism

4 class methods

The Ruby::Prism Ruby parser.

“Parsing Ruby is suddenly manageable!” - You, hopefully

Ruby::Prism is the prism parser built into the interpreter, i.e., the very parser that parsed the running program.

Its API follows the version of prism bundled with this Ruby, and may change incompatibly between Ruby minor versions: not only the node definitions but also the other APIs, as the bundled prism may move to a new major version.

In most cases, use the prism gem instead. Use Ruby::Prism only when you need the very parser of the running interpreter.

Class methods 4

Constants

The C extension is the default backend on CRuby.