Class: Byebug::DisplayCommand

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

Overview

Displays the value of enabled expressions.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.always_runObject



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

def self.always_run
  2
end

.descriptionObject



76
77
78
# File 'lib/byebug/commands/display.rb', line 76

def description
  %(disp[lay]        Display expression list.)
end

.namesObject



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

def names
  %w(display)
end

Instance Method Details

#executeObject



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

def execute
  print_display_expressions
end

#regexpObject



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

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