Class: Debugger::VarGlobalCommand
- Defined in:
- lib/ruby-debug/commands/variables.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options
Constructor Details
This class inherits a constructor from Debugger::Command
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Debugger::Command
Class Method Details
.help(cmd) ⇒ Object
47 48 49 50 51 |
# File 'lib/ruby-debug/commands/variables.rb', line 47 def help(cmd) %{ v[ar] g[lobal]\t\t\tshow global variables } end |
.help_command ⇒ Object
43 44 45 |
# File 'lib/ruby-debug/commands/variables.rb', line 43 def help_command 'var' end |
Instance Method Details
#execute ⇒ Object
36 37 38 39 40 |
# File 'lib/ruby-debug/commands/variables.rb', line 36 def execute print_variables(global_variables, 'global') do |var| debug_eval(var) end end |
#regexp ⇒ Object
32 33 34 |
# File 'lib/ruby-debug/commands/variables.rb', line 32 def regexp /^\s*v(?:ar)?\s+g(?:lobal)?\s*$/ end |