Class: Repp::Handler::Shell
- Inherits:
-
Object
- Object
- Repp::Handler::Shell
- Defined in:
- lib/repp/handler/shell.rb
Defined Under Namespace
Modules: KeyboardHandler
Class Method Summary collapse
Class Method Details
.run(app, options = {}) {|_self| ... } ⇒ Object
19 20 21 22 23 |
# File 'lib/repp/handler/shell.rb', line 19 def self.run(app, = {}) yield self if block_given? EM.run { EM.open_keyboard(KeyboardHandler, app) } end |
.stop ⇒ Object
25 26 27 |
# File 'lib/repp/handler/shell.rb', line 25 def self.stop EM.run { EM.stop } end |