jeudi 25 mai 2017

Spliting ruby string with double quotes

I have a string like this-

:customer_key=>"Auto_2505114328103264"

I want to extract the string to Auto_2505114328103264

I tried- (customer_key.to_s).split("") and (customer_key.to_s).split(" " " ")

but this is not working. What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire