instance 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 1917
def parse(source, filepath = "(string)")
translate(Prism.parse(source, filepath: filepath, partial_script: true), filepath)
end
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.