Sha256: 91dadbbcb1d747387f08db25eb56507148ae27730043e41a4f9724a2efcd95c0

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module BarkingIguana
  module ForkCalls
    class Forker
      attr_accessor :receivers
      private :receivers=, :receivers

      def initialize *receivers
        self.receivers = receivers
      end

      def method_missing name, *args, &block
        receivers.each do |receiver|
          receiver.__send__ name, *args, &block
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
barking_iguana-fork_calls-0.1.0 lib/barking_iguana/fork_calls/forker.rb