class method
Prism::Translation::RubyParser.parse
parse(source, filepath = "(string)")
lib/prism/translation/ruby_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/ruby_parser.rb, line 1938
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.