Class: Debugger::DisplayCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/display.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

.always_runObject



49
50
51
52
53
54
55
56
# File 'lib/ruby-debug/commands/display.rb', line 49

def self.always_run 
  Debugger.annotate = 0 unless Debugger.annotate
  if Debugger.annotate > 1 
    0
  else
    2
  end
end

.help(cmd) ⇒ Object



71
72
73
74
75
# File 'lib/ruby-debug/commands/display.rb', line 71

def help(cmd)
  %{
    disp[lay]\t\tdisplay expression list
  }
end

.help_commandObject



67
68
69
# File 'lib/ruby-debug/commands/display.rb', line 67

def help_command
  'display'
end

Instance Method Details

#executeObject



62
63
64
# File 'lib/ruby-debug/commands/display.rb', line 62

def execute
  print_display_expressions
end

#regexpObject



58
59
60
# File 'lib/ruby-debug/commands/display.rb', line 58

def regexp
  /^\s*disp(?:lay)?$/
end