Examveda

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


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby