Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::Serialize.load
load(input, serialized)
lib/prism/serialize.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/serialize.rb, line 37
def self.load(input, serialized)
input = input.dup
source = Source.new(input)
loader = Loader.new(source, serialized)
result = loader.load_result
input.force_encoding(loader.encoding)
result
end
Deserialize the AST represented by the given string into a parse result.