Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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
 
PREVIOUS NEXT
Tagged: #create #hash #existing #hash #ruby
ADD COMMENT
Topic
Name
6+7 =