Marshal

Constants

Methods

#marshal_dump

def marshal_dump
  marshal_instance_variables.map(&method(:instance_variable_get))
end

#marshal_load

def marshal_load(array)
  marshal_instance_variables.zip(array).each do |var, value|
    instance_variable_set(var, value)
  end
end