Ruby::Marshal::Struct
Inherits Ruby::Marshal::StreamObject < Reference < Object
“S” represents a Struct. Following the type byte is a symbol containing the name of the struct. Following the name is a long indicating the number of members in the struct. Double the number of objects follow the member count. Each member is a pair containing the member’s symbol and an object for the value of that member.
If the struct name does not match a Struct subclass in the running ruby an exception should be raised.
If there is a mismatch between the struct in the currently running ruby and the member count in the marshaled struct an exception should be raised.
Constructors
new(stream : Bytes)
SourceInstance methods
data
Sourcepopulate_class(klass : ::Object)
Sourceread(stream : Bytes)
Sourceread_attr(name : ::String, raw = false)
Sourceread_raw_attr(name : ::String)
Source