Jika mengandung Ruby

my_string = "abcdefg"
if my_string.include? "cde"
   puts "String includes 'cde'"
end
Clear Crane