method

include?

v1_8_7_330 - Show latest stable - Class: String
include?(p1)
public

Returns true if str contains the given string or character.

"hello".include? "lo"   #=> true
"hello".include? "ol"   #=> false
"hello".include? ?h     #=> true