lib/cucumber/broadcaster.rb in kosmas58-cucumber-0.1.16.6 vs lib/cucumber/broadcaster.rb in kosmas58-cucumber-0.1.99.21
- old
+ new
@@ -3,17 +3,12 @@
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)
+ receiver.__send__(method_name, *args)
end
end
end
end