lib/concurrent/concern/observable.rb in concurrent-ruby-1.0.5-java vs lib/concurrent/concern/observable.rb in concurrent-ruby-1.1.0.pre1

- old
+ new

@@ -47,11 +47,11 @@ # `obs` is wrong because the variable `@count` can be accessed by different # threads at the same time, so it should be synchronized (using either a Mutex # or an AtomicFixum) module Observable - # @!macro [attach] observable_add_observer + # @!macro observable_add_observer # # Adds an observer to this set. If a block is passed, the observer will be # created by this method and no other params should be passed. # # @param [Object] observer the observer to add @@ -70,31 +70,31 @@ def with_observer(observer = nil, func = :update, &block) add_observer(observer, func, &block) self end - # @!macro [attach] observable_delete_observer - # + # @!macro observable_delete_observer + # # Remove `observer` as an observer on this object so that it will no # longer receive notifications. # # @param [Object] observer the observer to remove # @return [Object] the deleted observer def delete_observer(observer) observers.delete_observer(observer) end - # @!macro [attach] observable_delete_observers - # + # @!macro observable_delete_observers + # # Remove all observers associated with this object. - # + # # @return [Observable] self def delete_observers observers.delete_observers self end - # @!macro [attach] observable_count_observers + # @!macro observable_count_observers # # Return the number of observers associated with this object. # # @return [Integer] the observers count def count_observers