Method: Origami::CompoundObject#copy

Defined in:
lib/origami/compound.rb

#copyObject

Creates a deep copy of the compound object. This method can be quite expensive as nested objects are copied too.



118
119
120
121
122
# File 'lib/origami/compound.rb', line 118

def copy
    obj = self.update_values(&:copy)

    transfer_attributes(obj)
end