Q. Which method is used to convert a string to integer in Ruby? (A) to_int (B) to_i (C) int() (D) convert_to_int ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) to_i Explanation: The 'to_i' method converts a string to an integer in Ruby.