Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Ruby::Prism.load

load(source, serialized, freeze) → ParseResult

Load the serialized AST using the source as a reference into a tree.

: (String source, String serialized, ?bool freeze) -> ParseResult