Monthly Archives: January 2016

You are browsing the site archives by month.

1. Deep copy When you copy an object that contains other objects, like an Array, only a reference to these objects is copied. You can see that in action here:   1 2 3 food = %w( bread milk orange ) food.map(&:object_id)       # [35401044, 35401020, 35400996] food.clone.map(&:object_id) # [35401044, 35401020, 35400996]   Using the Marshal class, which is normally used Read More →

Innovabe Menu