Class: Termplot::Consumers::MultiSourceConsumer
Instance Method Summary
collapse
#initialize, #run
Instance Method Details
9
10
11
|
# File 'lib/termplot/consumers/multi_source_consumer.rb', line 9
def positioned_widgets
@positioned_widgets ||= config.positioned_widgets
end
|
#register_producers_and_brokers ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/termplot/consumers/multi_source_consumer.rb', line 13
def register_producers_and_brokers
config.widget_configs.each do |widget_config|
producer = build_producer(widget_config)
broker_pool.broker(sender: producer, receiver: widget_config.widget)
producer_pool.add_producer(producer)
end
end
|