str.include? other_str â true or false
Instance Public methods
Returns true
if str contains the given string or
character.
"hello".include? "lo" #=> true "hello".include? "ol" #=> false "hello".include? ?h #=> true
Returns true
if str contains the given string or
character.
"hello".include? "lo" #=> true "hello".include? "ol" #=> false "hello".include? ?h #=> true
Please login to continue.