lundi 16 avril 2018

Ruby - Check if string has split keys

I am trying to find if a string has list of keys which are separated with a | delimiter. I currently have following regex but it gives me an error saying it cannot convert Array into string.

Error: `include?': no implicit conversion of Array into String

data.include? keys[5].split("|")

Aucun commentaire:

Enregistrer un commentaire