Sha256: 575a0ea1409121abec1bd9d86c288ae7edfd68a99014144c1d30aa619e598880
Contents?: true
Size: 453 Bytes
Versions: 22
Compression:
Stored size: 453 Bytes
Contents
module Cucumber class Broadcaster def initialize(receivers = []) @receivers = receivers end def register(receiver) @receivers << receiver end def method_missing(method_name, *args) @receivers.each do |receiver| r = (receiver == STDOUT) ? Kernel : receiver # Needed to make colors work on Windows r.__send__(method_name, *args) if receiver.respond_to?(method_name) end end end end
Version data entries
22 entries across 22 versions & 5 rubygems