instance method String#include

View source on GitHub →

String#include(substring) → Boolean

Checks if the string contains substring.

Example
'Prototype framework'.include('frame');
//-> true
'Prototype framework'.include('frameset');
//-> false