Class: EventMachine::Synchrony::Keyboard
- Inherits:
-
Object
- Object
- EventMachine::Synchrony::Keyboard
- Defined in:
- lib/em-synchrony/keyboard.rb
Instance Attribute Summary collapse
-
#current_fiber ⇒ Object
readonly
Returns the value of attribute current_fiber.
-
#separator ⇒ Object
readonly
Returns the value of attribute separator.
Instance Method Summary collapse
Instance Attribute Details
#current_fiber ⇒ Object (readonly)
Returns the value of attribute current_fiber.
4 5 6 |
# File 'lib/em-synchrony/keyboard.rb', line 4 def current_fiber @current_fiber end |
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
4 5 6 |
# File 'lib/em-synchrony/keyboard.rb', line 4 def separator @separator end |
Instance Method Details
#gets ⇒ Object
6 7 8 9 10 11 |
# File 'lib/em-synchrony/keyboard.rb', line 6 def gets @current_fiber = Fiber.current EM.open_keyboard(EventMachine::Synchrony::KeyboardHandler, self) Fiber.yield end |