Namespace

Methods

Class/Module Index [+]

Quicksearch

Gorillib

Public Class Methods

deep_copy(value) click to toggle source

Make a clean deep-copy of the value, via gorillib semantics if

possible, otherwise via marshalling
# File lib/gorillib/resolution.rb, line 9
def self.deep_copy(value)
  case
  when ( value.respond_to? :to_wire and value.respond_to? :receive )
    return value.class.receive(value.to_wire)
  else
    return Marshal.load(Marshal.dump(value))
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.