Class: BotFramework::ConsoleConnector
- Inherits:
-
Object
- Object
- BotFramework::ConsoleConnector
- Includes:
- Observable
- Defined in:
- lib/bot_framework/console_connector.rb
Instance Method Summary collapse
Instance Method Details
#listen ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bot_framework/console_connector.rb', line 6 def listen BotFramework.logger.info 'Listening' loop do line = Readline.readline('> ') break if line.nil? || line == 'quit' Readline::HISTORY.push(line) BotFramework.logger.info "You typed: #{line}" end self end |