Module: Console1984::Ext::Irb::Commands

Includes:
Freezeable
Defined in:
lib/console1984/ext/irb/commands.rb

Overview

Add Console 1984 commands to IRB sessions.

Instance Method Summary collapse

Methods included from Freezeable

freeze_all, included

Instance Method Details

#_console_last_suspicious_command_errorObject

This returns the last error that prevented a command execution in the console or nil if there isn’t any.

This is meant for internal usage when debugging legit commands that are wrongly prevented.



22
23
24
# File 'lib/console1984/ext/irb/commands.rb', line 22

def _console_last_suspicious_command_error
  Console1984.command_executor.last_suspicious_command_error
end

#decrypt!Object

Enter unprotected mode mode.



8
9
10
# File 'lib/console1984/ext/irb/commands.rb', line 8

def decrypt!
  shield.enable_unprotected_mode
end

#encrypt!Object

Enter protected mode mode.



13
14
15
# File 'lib/console1984/ext/irb/commands.rb', line 13

def encrypt!
  shield.enable_protected_mode
end