Q. Which method is used to convert a string to integer in Ruby?
β
Correct Answer: (B)
to_i
Explanation: The 'to_i' method converts a string to an integer in Ruby.