Examveda

What does the `include?` method do when used with strings in Ruby?

A. Checks if a substring exists in the string

B. Checks if a character exists in the string

C. Checks if the string includes another string

D. Error

Answer: Option C


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby