instance method
Delegator#marshal_load
(untyped data) -> void
marshal_load(data)
lib/delegate.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/delegate.rb, line 216
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0