Class: Cucumber::Broadcaster
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(receivers = []) ⇒ Broadcaster
constructor
A new instance of Broadcaster.
- #method_missing(method_name, *args) ⇒ Object
Constructor Details
#initialize(receivers = []) ⇒ Broadcaster
Returns a new instance of Broadcaster.
3 4 5 |
# File 'lib/cucumber/broadcaster.rb', line 3 def initialize(receivers = []) @receivers = receivers end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
7 8 9 10 11 |
# File 'lib/cucumber/broadcaster.rb', line 7 def method_missing(method_name, *args) @receivers.map do |receiver| receiver.__send__(method_name, *args) end end |