Class: Hokaido::Broadcast::InputHandler
- Inherits:
-
Object
- Object
- Hokaido::Broadcast::InputHandler
- Includes:
- Celluloid
- Defined in:
- lib/hokaido/broadcast.rb
Instance Method Summary collapse
-
#initialize(ptyin) ⇒ InputHandler
constructor
A new instance of InputHandler.
- #run ⇒ Object
Constructor Details
#initialize(ptyin) ⇒ InputHandler
Returns a new instance of InputHandler.
47 48 49 50 51 |
# File 'lib/hokaido/broadcast.rb', line 47 def initialize() = async.run end |
Instance Method Details
#run ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/hokaido/broadcast.rb', line 53 def run while char = $stdin.getch .putc char end terminate end |