Class: Repp::Handler::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/repp/handler/shell.rb

Defined Under Namespace

Modules: KeyboardHandler

Class Method Summary collapse

Class Method Details

.run(app, options = {}) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



19
20
21
22
23
# File 'lib/repp/handler/shell.rb', line 19

def self.run(app, options = {})
  yield self if block_given?

  EM.run { EM.open_keyboard(KeyboardHandler, app) }
end

.stopObject



25
26
27
# File 'lib/repp/handler/shell.rb', line 25

def self.stop
  EM.run { EM.stop }
end