Sha256: 8338c0d6423681a0e627230027e624a75610998213f6733d56ac0d9fbc2bceb5

Contents?: true

Size: 261 Bytes

Versions: 109

Compression:

Stored size: 261 Bytes

Contents

module Cucumber
  class Broadcaster
    def initialize(receivers = [])
      @receivers = receivers
    end

    def method_missing(method_name, *args)
      @receivers.map do |receiver|
        receiver.__send__(method_name, *args)
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 9 rubygems

Version Path
cucumber-0.3.11 lib/cucumber/broadcaster.rb
cucumber-0.3.2 lib/cucumber/broadcaster.rb
cucumber-0.3.5 lib/cucumber/broadcaster.rb
cucumber-0.3.4 lib/cucumber/broadcaster.rb
cucumber-0.3.6 lib/cucumber/broadcaster.rb
cucumber-0.3.3 lib/cucumber/broadcaster.rb
cucumber-0.3.9 lib/cucumber/broadcaster.rb
cucumber-0.3.8 lib/cucumber/broadcaster.rb
cucumber-0.3.7 lib/cucumber/broadcaster.rb