Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::Translation::RubyParser.parse
parse(source, filepath = "(string)")
lib/prism/translation/ruby_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/translation/ruby_parser.rb, line 1620
def parse(source, filepath = "(string)")
new.parse(source, filepath)
end
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.