Q9
Which method is used to replace occurrences of a pattern in a string with a specified string in Ruby?
A.
String#modify
B.
String#sub
C.
String#gsub
AnswerD.
String#replace
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board