# File rbot/keywords.rb, line 167 def [](key) debug "keywords module: looking up key #{key}" if(@keywords.has_key?(key)) return Keyword.restore(@keywords[key]) else # key name order for the lookup through these @statickeywords.keys.sort.each {|k| v = @statickeywords[k] if v.has_key?(key) return Keyword.restore(v[key]) end } end return nil end