Ruby OpenStruct Functions

EditRocket provides the following information on OpenStruct functions in the Ruby source code builder.

delete_field(name) - Remove the named field from the object.

initialize_copy(orig) - Duplicate an OpenStruct object members.

inspect() - Returns a string containing a detailed summary of the keys and values.

marshal_dump() -

marshal_load(x) -

new(hash=nil) - Create a new OpenStruct object. The optional hash, if given, will generate attributes and values. For example.

new_ostruct_member(name) -

to_s() - "Alias for #inspect"