Q. Which method is used to extract all occurrences of a pattern in a string in Ruby? (A) String#scan (B) String#extract (C) String#find_all (D) String#match_all ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) String#scan