Class: Byebug::DisplayCommand
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
Class Method Details
.always_run ⇒ Object
59
60
61
|
# File 'lib/byebug/commands/display.rb', line 59
def self.always_run
2
end
|
.description ⇒ Object
76
77
78
|
# File 'lib/byebug/commands/display.rb', line 76
def description
%(disp[lay] Display expression list.)
end
|
.names ⇒ Object
72
73
74
|
# File 'lib/byebug/commands/display.rb', line 72
def names
%w(display)
end
|
Instance Method Details
#execute ⇒ Object
67
68
69
|
# File 'lib/byebug/commands/display.rb', line 67
def execute
print_display_expressions
end
|
#regexp ⇒ Object
63
64
65
|
# File 'lib/byebug/commands/display.rb', line 63
def regexp
/^\s* disp(?:lay)? \s*$/x
end
|