Changeset 158

Show
Ignore:
Timestamp:
05/28/06 14:07:10 (2 years ago)
Author:
blackhedd
Message:

added a warning message

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • experiments/machine/lib/machine/event.rb

    r137 r158  
    3030    # TODO: error checking... 
    3131    def add_handler(type, target=nil, handler=nil, &block) 
     32      raise "initialization failed- did you call super in your constructor?" unless @handlers 
     33 
    3234      @handlers[type][target] << handler if (target and handler) 
    3335