method

add_observer

v1_9_1_378 - Show latest stable - Class: Observable
add_observer(observer, func=:update)
public

Add observer as an observer on this object. observer will now receive notifications. The second optional argument specifies a method to notify updates, of which default value is update.