method

notify_observers

ruby latest stable - Class: Observable
notify_observers(*arg)
public

Notify observers of a change in state if this object’s changed state is true.

This will invoke the method named in #add_observer, passing *arg. The changed state is then set to false.

*arg

Any arguments to pass to the observers.