# File lib/rubygame/event_handler.rb, line 95 def append_hook( hook ) hook = Rubygame::EventHook.new( hook ) if hook.kind_of?( Hash ) @hooks = (@hooks - [hook]) | [hook] return hook end