Answers for "how to make hash one ruby"

0

create a new hash from existing hash ruby

data = {name: 'akshay', last_name: 'kakade'}
new_hash = Hash[data]
data.object_id
new_hash.object_id
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language