# File lib/as_event.rb, line 21 def self.for_key(sym) key = case sym when Symbol raise "No such key" unless Keysyms.has_key?(sym) Keysyms[sym] when Fixnum raise "No such key" unless Keysyms.has_value?(sym) sym end return key<<4 | 0 end