search for: add_subscrib

Displaying 1 result from an estimated 1 matches for "add_subscrib".

Did you mean: add_subscriber
2005 May 08
1
ruby destructor hooks
Hi Is there a way of finding out when or whether the wx object referenced in ruby is still alive? Here''s my problem # register that +wx_control+ should update on application events of type +event_type+ def add_subscriber(wx_control, app_event_type) @subscriptions[app_event_type].push(wx_control) end # later def broadcast(app_event) @subscriptions[app_event.type].each { | subscriber | subscriber.notify(app_event) } end I have an application in which a ruby hash mapping subscribable application events...