Module: Safeconsole::Commands

Included in:
Console
Defined in:
lib/safeconsole/commands.rb

Instance Method Summary collapse

Instance Method Details

#commandsObject



3
4
5
# File 'lib/safeconsole/commands.rb', line 3

def commands
  print_message(:commands)
end

#commitObject



15
16
17
18
# File 'lib/safeconsole/commands.rb', line 15

def commit
  Console.__console_commit = true
  print_message(:commit)
end

#doneObject



11
12
13
# File 'lib/safeconsole/commands.rb', line 11

def done
  Console.done!
end

#nevermindObject



20
21
22
23
# File 'lib/safeconsole/commands.rb', line 20

def nevermind
  Console.__console_commit = false
  print_message(:nevermind)
end

#refreshObject



7
8
9
# File 'lib/safeconsole/commands.rb', line 7

def refresh
  "safeconsole#refresh"
end

#statsObject



25
26
27
# File 'lib/safeconsole/commands.rb', line 25

def stats
  print_message(:session_stats)
end