Class: Castle::Utils::Clone
- Inherits:
-
Object
- Object
- Castle::Utils::Clone
- Defined in:
- lib/castle/utils/clone.rb
Overview
Clones any object
Class Method Summary collapse
-
.call(object) ⇒ Object
Returns a cloned object of any type.
Class Method Details
.call(object) ⇒ Object
Returns a cloned object of any type
9 10 11 |
# File 'lib/castle/utils/clone.rb', line 9 def call(object) Marshal.load(Marshal.dump(object)) end |