DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+7 =
Submit