class Prism::CurrentVersionError
Raised when requested to parse as the currently running Ruby version but Prism has no support for it.
Raised when requested to parse as the currently running Ruby version but Prism has no support for it.
Public Class Methods
(String version) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/lib/prism.rb, line 48 def initialize(version) message = +"invalid version: Requested to parse as `version: 'current'`; " major, minor, = if version.match?(/\A\d+\.\d+.\d+\z/) version.split(".").map(&:to_i) end if major && minor && ((major < 3) || (major == 3 && minor < 3)) message << " #{version} is below the minimum supported syntax." else message << " #{version} is unknown. Please update the `prism` gem." end super(message) end
Initialize a new exception for the given ruby version string.
Initialize a new exception for the given ruby version string.
: (String version) -> void
Calls superclass method
Exception::new