What does the 'chomp' method do in Ruby?
A. Removes trailing whitespace
B. Converts to integer
C. Reads input from user
D. Splits a string
Answer: Option A
A. Removes trailing whitespace
B. Converts to integer
C. Reads input from user
D. Splits a string
Answer: Option A
Join The Discussion