From: Victor Reyes Date: 2008-06-10T21:42:23+09:00 Subject: Re: I'm New ------=_Part_19788_4502622.1213101745292 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Jun 9, 2008 at 9:21 PM, David Stanislaus wrote: > When I ran: > > puts 'Speak up Sonny I can\'t hear you.' > talk = gets.chomp > if talk == talk.capitalize or talk == talk.downcase > then puts 'What? Sonny speak louder! Like THIS.' > if talk == talk.upcase > then puts 'no not since' > end > end > > and used Caps it just ended the program... sorry if this is too trivial, > if it is maybe you guys could recommend a place where I wont be a > bother, > > either way thanks. > -- > Posted via http://www.ruby-forum.com/. > > David, Although I am not sure what is it that you are trying to do, the following is one way to re-write your code and it does not abend! *puts "Speak up Sonny I can\'t hear you" talk = gets.chomp if talk == talk.capitalize or talk == talk.downcase puts "What? Sonny speak louder! Like THIS." else if talk == talk.upcase puts "no not since" end end* But why don't you tell us what you are trying to do and the forum might be able to recommend something better. One last thing, beginner or not you don't bother anyone. I am also still a beginner. Granted, you'll find people that do not want to deal with people like you or I, but then you find another dozen that really will help us. Victor ------=_Part_19788_4502622.1213101745292--