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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -