There are multiple ways to accomplish that. You could check each string until a match is found using Enumerable#any?: str = "alo eh tu" ['alo', 'hola', ...
確定! 回上一頁