Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Stringクラス > include?
include?(substr) -> bool
[permalink][rdoc]文字列中に部分文字列 substr が含まれていれば真を返します。
例
"hello".include? "lo" #=> true
"hello".include? "ol" #=> false
"hello".include? ?h #=> true