Does not contain method?

I am trying to pass only certain specific strings.

For example. if string does not contain “GoPhone”
break and move onto the next string in the array. This has been
difficult because different strings contain different amount of
characters and I just want strings to pass if they have “GoPhone” in the
string somewhere. Is there a method for this or does it need to be
regex? If you have any tips I would appreciate it.

I have been trying .include?(“GoPhone”) but ruby is not recognizing
.include? as something valid

I actually figured out what I was doing wrong. never mind.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs