Hi,

Am Freitag, 18. Dez 2009, 12:18:03 +0900 schrieb Omar Campos:
> Omar Campos wrote:
> > 
> > gets a
> > 
> Never mind!  I was doing it wrong,  it is
> 
> a = gets

Be aware that `gets' will return `nil' when the user presses
Ctrl-D. Saying

  gets.chomp

will raise an exception then.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
*
Discover String#notempty? at <http://raa.ruby-lang.org/project/step>.