Forum: Ruby Re: Console input

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6087a044557d6b59ab52e7dd20f94da8?d=identicon&s=25 Peña, Botp (Guest)
on 2006-06-07 08:59
(Received via mailing list)
fr Michal:

# data.chomp


or if you don't want the bang

data = gets.chomp

this q should be faqed, imho.
This topic is locked and can not be replied to.