class Byebug::EnableCommand::DisplayCommand - byebug-9.0.6 Documentation

# class Byebug::EnableCommand::DisplayCommand

Enables all or specific displays

### Public Class Methods

description() click to toggle source

    # File lib/byebug/commands/enable/display.rb, line 20
    def self.description
      <<-EOD
        en[able] d[isplay][ <id1> <id2> .. <idn>]

        #{short_description}

        Arguments are the code numbers of the expressions to enable. Do "info
        display" to see the current list of code numbers. If no arguments are
        specified, all displays are enabled.
      EOD
    end

regexp() click to toggle source

    # File lib/byebug/commands/enable/display.rb, line 16
    def self.regexp
      /^\s* d(?:isplay)? (?:\s+ (.+))? \s*$/x
    end

short_description() click to toggle source

    # File lib/byebug/commands/enable/display.rb, line 32
    def self.short_description
      'Enables expressions to be displayed when program stops.'
    end

### Public Instance Methods

execute() click to toggle source

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