fr Michal:
data.chomp
data.chomp!
or if you don’t want the bang
data = gets.chomp
this q should be faqed, imho.
fr Michal:
data.chomp!
or if you don’t want the bang
data = gets.chomp
this q should be faqed, imho.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs