Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
ErrorHighlight.prism
prism
lib/error_highlight/base.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/error_highlight/base.rb, line 110
def self.prism
if defined?(Ruby::Prism)
Ruby::Prism
else
require "prism"
::Prism
end
end
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.