Path: | lib/standard/facets/cloneable.rb |
Last Update: | Sat Feb 23 07:11:38 +0000 2019 |
Clonable provides a standard basis for adding deep cloneablity to a class via the standard dup and clone methods.
Cloneable was originally ported from Jim Weirich‘s Rake. The current version is the work of Ken Bloom.
DEPRECATED: A better approach is to provide a deep_dup and and a deep_clone, then if a class needs these for dup and clone they can just alias them.
CREDIT: Ken Bloom