# File lib/core/gameobject.rb, line 117 def parse(m) # match legal command m=~/([A-Za-z0-9_@?"'#!]+)(.*)/ cmd=$1 arg=$2 arg.strip! if arg # look for a command from our table for objects c = world.ocmds.find(cmd) # there are three possibilities here case c.size when 0 # no commands found false when 1 # command found return self.send(c[0].cmd, arg) else # ambiguous command - tell luser about them. false end end