lundi 8 octobre 2018

Ruby function for putting string in parentheses

Is there any ruby function that can do the following

str = ' ( '.concat( str.concat( ' ) ' ))

It is placing parentheses on both sides of the string str

Aucun commentaire:

Enregistrer un commentaire