What is the method used to convert a string to an integer in Ruby?
A. .to_i
B. .to_int
C. .convert_int
D. .parse_int
Answer: Option A
Related Questions on Data Types and Variables in Ruby
A. .to_i
B. .to_int
C. .convert_int
D. .parse_int
Answer: Option A
Join The Discussion