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
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion