Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism.dump_options_version
dump_options_version(version)
lib/prism/ffi.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/ffi.rb, line 427
def dump_options_version(version)
case version
when nil, "latest"
0
when /\A3\.3(\.\d+)?\z/
1
when /\A3\.4(\.\d+)?\z/
0
else
raise ArgumentError, "invalid version: #{version}"
end
end
Return the value that should be dumped for the version option.