module Ripl::Em
Constants
- VERSION
Public Instance Methods
before_loop()
click to toggle source
Calls superclass method
# File lib/ripl/em.rb, line 20 def before_loop super $stdout.sync = true Ripl::Shell::EXIT_WORDS << "\x00" # Ctrl-D + Enter exit trap("SIGINT") { handle_interrupt } end
get_input()
click to toggle source
# File lib/ripl/em.rb, line 7 def get_input history << @input @input end
in_loop()
click to toggle source
# File lib/ripl/em.rb, line 12 def in_loop catch(:ripl_exit) { EM.run { EM.open_keyboard(KeyboardHandler) } } rescue print_eval_error($!) end