module Concurrent::Concern::Observable
def with_observer(observer = nil, func = :update, &block)
-
(Observable)- self
Parameters:
-
func(Symbol) -- the function to call on the observer during notification. -
observer(Object) -- the observer to add
def with_observer(observer = nil, func = :update, &block) add_observer(observer, func, &block) self end