notify_observers(*arg)
public
If this object’s changed state is
true, invoke the update method in each currently associated
observer in turn, passing it the given arguments. The changed state is then set to
false.
Show source
def notify_observers(*arg)
if defined? @observer_state and @observer_state
if defined? @observer_peers
@observer_peers.each { |k, v|
k.send v, *arg
}
end
@observer_state = false
end
end