Module: MmDirtier::InArrayProxyListener

Includes:
Observables::Base
Defined in:
lib/mm_dirtier/in_array_proxy_listener.rb

Instance Method Summary collapse

Instance Method Details

#idsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/mm_dirtier/in_array_proxy_listener.rb', line 5

def ids
  super.tap do |ids|

    unless ids.observable?
      ids.make_observable
      ids.set_observer do |sender,type,args|
        notifier.publish type, args
      end
    end

  end

end