Computer Science Canada

$stdin

Author:  Mackie [ Thu Feb 28, 2008 8:58 pm ]
Post subject:  $stdin

How do I use '$stdin' in Ruby? I don't see any advantages over 'gets'. And what are all of the definitions? I can't find anything about it, in any form of documentation. Thanks in advance.

Author:  Tony [ Thu Feb 28, 2008 9:57 pm ]
Post subject:  RE:$stdin

$stdin is an instance of an IO class. gets is a method of $stdin


: