Class: Byebug::DisplayCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/byebug/commands/display.rb

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, format_subcmd, format_subcmds, help, 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 Byebug::Command

Class Method Details

.always_runObject



50
51
52
53
54
55
56
57
# File 'lib/byebug/commands/display.rb', line 50

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

.descriptionObject



72
73
74
75
76
# File 'lib/byebug/commands/display.rb', line 72

def description
  %{
    disp[lay]\t\tdisplay expression list
  }
end

.namesObject



68
69
70
# File 'lib/byebug/commands/display.rb', line 68

def names
  %w(display)
end

Instance Method Details

#executeObject



63
64
65
# File 'lib/byebug/commands/display.rb', line 63

def execute
  print_display_expressions
end

#regexpObject



59
60
61
# File 'lib/byebug/commands/display.rb', line 59

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