From: Robert Klemme Date: 2010-02-02T17:04:06+09:00 Subject: Re: Workaround for "conflict" between ARGV and gets? 2010/2/1 RichardOnRails : > I see, Ryan.  What I should have done to understand the problem fully > was: > > puts gets.class # => String > > which makes it clear why I didn't get the 'native' versions you > pointed out.  I had checked in http://www.ruby-doc.org/core/ but made > two stupid mistakes: I failed to notice Kernel in the middle column > and gets (Kernel) in the right-hand column.  And I never thought of > IO, nor noted gets (IO) in the right-hand column. Here's something you can do to find out more about a method: irb(main):006:0> method(:gets) => # irb(main):007:0> method(:gets).owner => Kernel Then you can do "ri Kernel#gets" and get the docs (or look online at http://www.ruby-doc.org/ of course). > It all begs the question:  When will I learn enough Ruby to program > without you guys :-) Well, but then you could not have all these nice little chats with us. ;-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/