examples/chatserver.rb
def wholist( user )
		rval = "[Connected Users]\n" <<
		       "  *#{user}*\n"

		@users.each do |u|
			next if u == user
			rval << "  #{u}\n"
		end

		return rval
	end
### Build and return a list of connected users for the specified +user+.
Build and return a list of connected users for the specified +user+.
Build and return a list of connected users for the specified + user + .
def wholist( user )
		rval = "[Connected Users]\n" <<
		       "  *#{user}*\n"
		@users.each do |u|
			next if u == user
			rval << "  #{u}\n"
		end
		return rval
	end
def wholist ( user ) rval = "[Connected Users]\n" << "  *#{user}*\n" @users . each do | u | next if u == user rval << "  #{u}\n" end return rval end
Build and return a list of connected users for the specified +user+.
Build and return a list of connected users for the specified + user + .
user