class TappingDevice::Trackable::AsyncCollectionProxy

AsyncCollectionProxy delegates chained actions to multiple device “asyncronously” when we use tapping methods like `tap_init!` to create sub-devices we need to find a way to pass the chained actions to every sub-device that's created and this can only happen asyncronously as we won't know when'll that happen

Public Class Methods

new(devices = []) click to toggle source
# File lib/tapping_device/trackable.rb, line 110
def initialize(devices = [])
  super
  @blocks = {}
end

Public Instance Methods

<<(device) click to toggle source
# File lib/tapping_device/trackable.rb, line 122
def <<(device)
  @devices << device

  @blocks.each do |method, block|
    device.send(method, &block)
  end
end