Q2
Which method is used to find the first occurrence of a pattern in a string in Ruby?
A.
String#search
B.
String#find
C.
String#find_pattern
D.
String#match
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board