Skip to content

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

class method

ErrorHighlight.prism

prism

Returns the prism module: Ruby::Prism, the parser built into the interpreter (Ruby 4.1+), whose nodes always correspond to the compiled code; or the prism gem on older Rubies.