Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クエリでデータベースに似たものを呼び出す簡単な方法はありますか?
"mystring" は ["string1","mystring","string2"] に存在しますか => true を返します
"mystring" は ["string1","string2","string3"] に存在しますか => false を返します
["string1","mystring","string2"].include? "mystring"
参照: Enumerable#include?