# File examples/chatserver.rb, line 239 def processInput( user, *inputStrings ) inputStrings.each {|str| case str when %r{^/(\w+)\s*(.*)} handleCommand( user, $1, $2 ) else user.addOutput( "You>> #{str}" ) broadcastMsgFrom( user, str ) end } user.prompt if user.connected? end