class ReactiveObservers::Observable::Removing
Constants
- REQUIRED_FIELDS
Public Class Methods
new(active_observers, observer, removing_options)
click to toggle source
# File lib/reactive_observers/observable/removing.rb, line 8 def initialize(active_observers, observer, removing_options) @active_observers = active_observers @observer = observer @removing_options = removing_options end
Public Instance Methods
perform()
click to toggle source
# File lib/reactive_observers/observable/removing.rb, line 14 def perform @active_observers.delete_if do |active_observer| active_observer.compare.partial? @observer, @removing_options end end