Class: Termplot::Producers::StdinProducer

Inherits:
BaseProducer show all
Defined in:
lib/termplot/producers/stdin_producer.rb

Instance Method Summary collapse

Methods inherited from BaseProducer

#initialize, #on_message

Constructor Details

This class inherits a constructor from Termplot::Producers::BaseProducer

Instance Method Details

#runObject



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