Class: Ripl::Em::KeyboardHandler
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- Ripl::Em::KeyboardHandler
- Includes:
- EM::Protocols::LineText2
- Defined in:
- lib/ripl/em.rb
Instance Method Summary collapse
Instance Method Details
#post_init ⇒ Object
30 31 32 |
# File 'lib/ripl/em.rb', line 30 def post_init print Ripl.shell.prompt end |
#receive_line(line) ⇒ Object
34 35 36 37 38 |
# File 'lib/ripl/em.rb', line 34 def receive_line(line) Ripl.shell.input = line Ripl.shell.loop_once print Ripl.shell.prompt end |