From: Eric Hodel Date: 2006-07-11T08:16:30+09:00 Subject: Re: Sweet Lord! On Jul 9, 2006, at 6:45 AM, Daniel Schierbeck wrote: > It looks even cooler like this: > > class Terminal > class << self > include Enumerable > > def each > while input = gets > yield input.chomp > end > end > end > end > > Terminal.entries.join(', ') > > > Ahh, the possibilities! I prefer: $stdin.readlines.join ', ' -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com