Method: Artoo::Robot::ClassMethods#handle_signals
- Defined in:
- lib/artoo/robot_class_methods.rb
#handle_signals(self_read) ⇒ Object
109 110 111 112 113 114 |
# File 'lib/artoo/robot_class_methods.rb', line 109 def handle_signals(self_read) while readable_io = IO.select([self_read]) signal = readable_io.first[0].gets.strip raise Interrupt end end |