Registry / utility / ruby-deep-clone

ruby-deep-clone

JSON →
library0.8.0rbrubygemsunverified

Native implementation to create deep clones of Ruby objects.

gem install ruby_deep_clone
INSTALL
IMPORT
SIG · RUBY-DEEP-CLONE
R
ruby-deep-clone
utilityrubyv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RubyDeepClone
require 'ruby_deep_clone'

Deep clone a nested hash and verify independence

require 'ruby_deep_clone' original = {a: [1, 2, {b: 3}]} clone = RubyDeepClone.deep_clone(original) clone[:a][2][:b] = 99 puts original[:a][2][:b] # => 3
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ruby-deep-clone — gem install ruby-deep-clone · libregistry