mardi 19 avril 2022

How to add double quotes to elements inside a array in Ruby

I am very new to the Ruby, I have array and I want to add double quotes to all alpha-numeric elements

array I have: a = [a255b78, wr356672]

Array i required: a =["a255b78", "wr356672"]

Is there any direct way to do this?

Aucun commentaire:

Enregistrer un commentaire