End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Delegator#marshal_load
marshal_load(data)
lib/delegate.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/delegate.rb, line 215
def marshal_load(data)
version, vars, values, obj = data
if version == :__v2__
vars.each_with_index {|var, i| instance_variable_set(var, values[i])}
__setobj__(obj)
else
__setobj__(data)
end
end
Reinitializes delegation from a serialized object.
See also
#marshal_dump
#method_missing
#__getobj__
#methods
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1