Ruby combining an array into one string

后端 未结 3 717
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 08:39

In Ruby is there a way to combine all array elements into one string?

Example Array:

@arr = [\'

Hello World

\', \'

This is a

3条回答
提交回复
热议问题