chomp « String « Ruby






1.The chomp and chop Methods
2.chomp! returns nil without altering the string because there is no record separator at the end of the string
3.chomp and chomp!