mardi 18 août 2015

New object decelaration in Ruby

In Ruby, what is the difference between:
new_object = old_object
vs.
new_object =Object.new(old_object)

Aucun commentaire:

Enregistrer un commentaire