Class: Termplot::Producers::StdinProducer
- Inherits:
-
BaseProducer
- Object
- BaseProducer
- Termplot::Producers::StdinProducer
- Defined in:
- lib/termplot/producers/stdin_producer.rb
Instance Method Summary collapse
Methods inherited from BaseProducer
Constructor Details
This class inherits a constructor from Termplot::Producers::BaseProducer
Instance Method Details
#run ⇒ Object
4 5 6 7 8 |
# File 'lib/termplot/producers/stdin_producer.rb', line 4 def run while n = STDIN.gets&.chomp do produce(n) end end |