Class: Termplot::Producers::BaseProducer
- Inherits:
-
Object
- Object
- Termplot::Producers::BaseProducer
show all
- Defined in:
- lib/termplot/producers/base_producer.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseProducer.
4
5
6
7
|
# File 'lib/termplot/producers/base_producer.rb', line 4
def initialize(options)
@options = options
@on_message_handler = -> {}
end
|
Instance Method Details
#on_message(&block) ⇒ Object
9
10
11
|
# File 'lib/termplot/producers/base_producer.rb', line 9
def on_message(&block)
@on_message_handler = block
end
|
#run ⇒ Object
13
14
15
|
# File 'lib/termplot/producers/base_producer.rb', line 13
def run
raise "Must be implemented"
end
|