0

i have an array like this

text_arr = ["hello","how","are","you"]

and i want to convert this to string like this

text = "hello how are you"

How can i do this with Ruby ?

watermelon
  • 33
  • 6

1 Answers1

3

Try this one

text = text_arr.join(' ')
Ursus
  • 29,643
  • 3
  • 33
  • 50