Concatenate ruby hash's keys -
i have hash. how concatenate keys current_hash.keys result looks this: "key1 key2 key3 key4"?
current_hash.keys returns array, can join array elements using join() in ruby, try out
current_hash.keys.join(" ") hope helps!
Comments
Post a Comment