Class: Debugger::VarGlobalCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/variables.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map

Constructor Details

This class inherits a constructor from Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



102
103
104
105
106
# File 'lib/ruby-debug/commands/variables.rb', line 102

def help(cmd)
  %{
    v[ar] g[lobal]\t\t\tshow global variables
  }
end

.help_commandObject



98
99
100
# File 'lib/ruby-debug/commands/variables.rb', line 98

def help_command
  'var'
end

Instance Method Details

#executeObject



93
94
95
# File 'lib/ruby-debug/commands/variables.rb', line 93

def execute
  var_global
end

#regexpObject



89
90
91
# File 'lib/ruby-debug/commands/variables.rb', line 89

def regexp
  /^\s*v(?:ar)?\s+g(?:lobal)?\s*$/
end