From: Chris Date: 2002-04-04T04:29:58+09:00 Subject: Re: Newbie Questions In article <1017831725.4396.16.camel@detrius>, Erik B�gfors wrote: > Yes.. normally a string-object > > : [bagfors@detrius]$ ; irb > irb(main):001:0> str = gets > hello world > "hello world\n" > irb(main):002:0> p str > "hello world\n" > nil > irb(main):003:0> p str.type > String > nil Of course, you can always call methods on STDIN directly. irb(main):001:0> str = STDIN.readline.strip foo bar "foo bar"