class Byebug::DisableCommand::DisplayCommand

Enables all or specific displays

Public Class Methods

description() click to toggle source
# File lib/byebug/commands/disable/display.rb, line 20
def self.description
  <<-EOD
    dis[able] d[isplay][ <id1> <id2> .. <idn>]

    #{short_description}

    Arguments are the code numbers of the expressions to disable. Do "info
    display" to see the current list of code numbers. If no arguments are
    specified, all displays are disabled.
  EOD
end
regexp() click to toggle source
# File lib/byebug/commands/disable/display.rb, line 16
def self.regexp
  /^\s* d(?:isplay)? (?:\s+ (.+))? \s*$/x
end
short_description() click to toggle source
# File lib/byebug/commands/disable/display.rb, line 32
def self.short_description
  'Disables expressions to be displayed when program stops.'
end

Public Instance Methods

execute() click to toggle source
# File lib/byebug/commands/disable/display.rb, line 36
def execute
  enable_disable_display('disable', @match[1])
end