Sha256: 0200da2c8d79755b9242a1726f0bb3ecd7552b74440a0afab98199a7a00ae68c

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

require 'observer'

module DRb
  module DRbObservable
    include Observable

    def notify_observers(*arg)
      if defined? @observer_state and @observer_state
        if defined? @observer_peers
          @observer_peers.each do |observer, method|
            begin
              observer.send(method, *arg)
            rescue
              delete_observer(observer)
            end
          end
        end
        @observer_state = false
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shoesgem-0.1514.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1480.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1469.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1430.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1429.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1428.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1426.0 shoes/ruby/lib/drb/observer.rb
shoesgem-0.1424.0 shoes/ruby/lib/drb/observer.rb