What is the method used to check if a string contains a specific substring in Ruby?
A. .contains
B. .exist
C. .include?
D. .hasSubstring
Answer: Option C
Related Questions on Data Types and Variables in Ruby
A. .contains
B. .exist
C. .include?
D. .hasSubstring
Answer: Option C
Join The Discussion