From: Mark Day Date: 2007-05-31T12:40:40+09:00 Subject: Re: select([]) method --Apple-Mail-1-412154580 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On May 30, 2007, at 7:34 PM, Ari Brown wrote: > I cam across a new method: > select([], [], [], []) > where the objects in the select parentheses are arrays. > > But what does this exactly do? I could not find ANY documentation > on it. The original code is: $ ri select More than one method matched your request. You can refine your search by asking for information on one of: Array#select, Enumerable#select, Hash#select, IO::select, IRB::InputCompletor::select_message, Kernel#select, MatchData#select, Net::IMAP#select, Struct#select, URI::Generic#select, YAML::BaseNode#select!, YAML::BaseNode#select, YAML::DBM#select I think you're talking about IO::select: $ ri IO::select ------------------------------------------------------------- IO::select IO.select(read_array [, write_array [, error_array [, timeout]]] ) => array or nil ------------------------------------------------------------------------ It looks like you're using Mac OS X, so try doing "man select" from the Terminal for information on the underlying select() function in the OS. -Mark --Apple-Mail-1-412154580--