Class: Byebug::DisplayCommand

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.always_runObject



52
53
54
# File 'lib/byebug/commands/display.rb', line 52

def self.always_run
  2
end

.descriptionObject



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

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

.namesObject



65
66
67
# File 'lib/byebug/commands/display.rb', line 65

def names
  %w(display)
end

Instance Method Details

#executeObject



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

def execute
  print_display_expressions
end

#regexpObject



56
57
58
# File 'lib/byebug/commands/display.rb', line 56

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