Class: MeshChat::CLI::IRB
- Defined in:
- lib/meshchat/cli/irb.rb
Overview
TODO: only include this and awesome_print when booted with debug=true in the config
Constant Summary
Constants inherited from Command
Command::ADD, Command::CHAT, Command::CONFIG, Command::CONNECT, Command::DISPLAY, Command::EXIT, Command::EXPORT, Command::IDENTITY, Command::IMPORT, Command::INIT, Command::IRB, Command::LISTEN, Command::PING, Command::PING_ALL, Command::QUIT, Command::REMOVE, Command::RM, Command::SERVER, Command::SERVERS, Command::SET, Command::SHARE, Command::STOP_LISTENING, Command::WHO
Constants inherited from Input
MeshChat::CLI::Input::COMMAND, MeshChat::CLI::Input::WHISPER
Instance Attribute Summary
Attributes inherited from Command
Attributes inherited from Input
Instance Method Summary collapse
Methods inherited from Input
create, #initialize, is_command, is_whisper?
Constructor Details
This class inherits a constructor from MeshChat::CLI::Input
Instance Method Details
#handle ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/meshchat/cli/irb.rb', line 6 def handle begin code = command_args[1..command_args.length].join(' ') ap eval(code) '' rescue => e ap e. ap e.backtrace end end |